1 /*
2  * Copyright 2021 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.google.api.generator.gapic.model;
17 
18 import com.google.auto.value.AutoValue;
19 
20 @AutoValue
21 public abstract class OperationResponse {
nameFieldName()22   public abstract String nameFieldName();
23 
statusFieldName()24   public abstract String statusFieldName();
25 
errorCodeFieldName()26   public abstract String errorCodeFieldName();
27 
errorMessageFieldName()28   public abstract String errorMessageFieldName();
29 
statusFieldTypeName()30   public abstract String statusFieldTypeName();
31 
builder()32   public static Builder builder() {
33     return new AutoValue_OperationResponse.Builder();
34   }
35 
36   @AutoValue.Builder
37   public abstract static class Builder {
setNameFieldName(String nameFieldName)38     public abstract Builder setNameFieldName(String nameFieldName);
39 
setStatusFieldName(String val)40     public abstract Builder setStatusFieldName(String val);
41 
setErrorCodeFieldName(String val)42     public abstract Builder setErrorCodeFieldName(String val);
43 
setErrorMessageFieldName(String val)44     public abstract Builder setErrorMessageFieldName(String val);
45 
setStatusFieldTypeName(String className)46     public abstract Builder setStatusFieldTypeName(String className);
47 
build()48     public abstract OperationResponse build();
49   }
50 }
51