|
| 1 | +/* |
| 2 | + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except |
| 3 | + * in compliance with the License. You may obtain a copy of the License at |
| 4 | + * |
| 5 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 6 | + * |
| 7 | + * Unless required by applicable law or agreed to in writing, software distributed under the License |
| 8 | + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express |
| 9 | + * or implied. See the License for the specific language governing permissions and limitations under |
| 10 | + * the License. |
| 11 | + */ |
| 12 | +/* |
| 13 | + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ |
| 14 | + * Modify at your own risk. |
| 15 | + */ |
| 16 | + |
| 17 | +package com.google.api.services.serviceconsumermanagement.v1.model; |
| 18 | + |
| 19 | +/** |
| 20 | + * `BatchingDescriptorProto` specifies the fields of the request message to be used for batching, |
| 21 | + * and, optionally, the fields of the response message to be used for demultiplexing. |
| 22 | + * |
| 23 | + * <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is |
| 24 | + * transmitted over HTTP when working with the Service Consumer Management API. For a detailed |
| 25 | + * explanation see: |
| 26 | + * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a> |
| 27 | + * </p> |
| 28 | + * |
| 29 | + * @author Google, Inc. |
| 30 | + */ |
| 31 | +@SuppressWarnings("javadoc") |
| 32 | +public final class BatchingDescriptorProto extends com.google.api.client.json.GenericJson { |
| 33 | + |
| 34 | + /** |
| 35 | + * The repeated field in the request message to be aggregated by batching. |
| 36 | + * The value may be {@code null}. |
| 37 | + */ |
| 38 | + @com.google.api.client.util.Key |
| 39 | + private java.lang.String batchedField; |
| 40 | + |
| 41 | + /** |
| 42 | + * A list of the fields in the request message. Two requests will be batched together only if the |
| 43 | + * values of every field specified in `request_discriminator_fields` is equal between the two |
| 44 | + * requests. |
| 45 | + * The value may be {@code null}. |
| 46 | + */ |
| 47 | + @com.google.api.client.util.Key |
| 48 | + private java.util.List<java.lang.String> discriminatorFields; |
| 49 | + |
| 50 | + /** |
| 51 | + * Optional. When present, indicates the field in the response message to be used to demultiplex |
| 52 | + * the response into multiple response messages, in correspondence with the multiple request |
| 53 | + * messages originally batched together. |
| 54 | + * The value may be {@code null}. |
| 55 | + */ |
| 56 | + @com.google.api.client.util.Key |
| 57 | + private java.lang.String subresponseField; |
| 58 | + |
| 59 | + /** |
| 60 | + * The repeated field in the request message to be aggregated by batching. |
| 61 | + * @return value or {@code null} for none |
| 62 | + */ |
| 63 | + public java.lang.String getBatchedField() { |
| 64 | + return batchedField; |
| 65 | + } |
| 66 | + |
| 67 | + /** |
| 68 | + * The repeated field in the request message to be aggregated by batching. |
| 69 | + * @param batchedField batchedField or {@code null} for none |
| 70 | + */ |
| 71 | + public BatchingDescriptorProto setBatchedField(java.lang.String batchedField) { |
| 72 | + this.batchedField = batchedField; |
| 73 | + return this; |
| 74 | + } |
| 75 | + |
| 76 | + /** |
| 77 | + * A list of the fields in the request message. Two requests will be batched together only if the |
| 78 | + * values of every field specified in `request_discriminator_fields` is equal between the two |
| 79 | + * requests. |
| 80 | + * @return value or {@code null} for none |
| 81 | + */ |
| 82 | + public java.util.List<java.lang.String> getDiscriminatorFields() { |
| 83 | + return discriminatorFields; |
| 84 | + } |
| 85 | + |
| 86 | + /** |
| 87 | + * A list of the fields in the request message. Two requests will be batched together only if the |
| 88 | + * values of every field specified in `request_discriminator_fields` is equal between the two |
| 89 | + * requests. |
| 90 | + * @param discriminatorFields discriminatorFields or {@code null} for none |
| 91 | + */ |
| 92 | + public BatchingDescriptorProto setDiscriminatorFields(java.util.List<java.lang.String> discriminatorFields) { |
| 93 | + this.discriminatorFields = discriminatorFields; |
| 94 | + return this; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * Optional. When present, indicates the field in the response message to be used to demultiplex |
| 99 | + * the response into multiple response messages, in correspondence with the multiple request |
| 100 | + * messages originally batched together. |
| 101 | + * @return value or {@code null} for none |
| 102 | + */ |
| 103 | + public java.lang.String getSubresponseField() { |
| 104 | + return subresponseField; |
| 105 | + } |
| 106 | + |
| 107 | + /** |
| 108 | + * Optional. When present, indicates the field in the response message to be used to demultiplex |
| 109 | + * the response into multiple response messages, in correspondence with the multiple request |
| 110 | + * messages originally batched together. |
| 111 | + * @param subresponseField subresponseField or {@code null} for none |
| 112 | + */ |
| 113 | + public BatchingDescriptorProto setSubresponseField(java.lang.String subresponseField) { |
| 114 | + this.subresponseField = subresponseField; |
| 115 | + return this; |
| 116 | + } |
| 117 | + |
| 118 | + @Override |
| 119 | + public BatchingDescriptorProto set(String fieldName, Object value) { |
| 120 | + return (BatchingDescriptorProto) super.set(fieldName, value); |
| 121 | + } |
| 122 | + |
| 123 | + @Override |
| 124 | + public BatchingDescriptorProto clone() { |
| 125 | + return (BatchingDescriptorProto) super.clone(); |
| 126 | + } |
| 127 | + |
| 128 | +} |
0 commit comments