1 /*
2  * Copyright 2020 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 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/compute/v1/compute.proto
18 
19 package com.google.cloud.compute.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * This message defines settings for a consistent hash style load balancer.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.compute.v1.ConsistentHashLoadBalancerSettings}
29  */
30 public final class ConsistentHashLoadBalancerSettings extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.compute.v1.ConsistentHashLoadBalancerSettings)
33     ConsistentHashLoadBalancerSettingsOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use ConsistentHashLoadBalancerSettings.newBuilder() to construct.
ConsistentHashLoadBalancerSettings( com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private ConsistentHashLoadBalancerSettings(
37       com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
38     super(builder);
39   }
40 
ConsistentHashLoadBalancerSettings()41   private ConsistentHashLoadBalancerSettings() {
42     httpHeaderName_ = "";
43   }
44 
45   @java.lang.Override
46   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)47   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
48     return new ConsistentHashLoadBalancerSettings();
49   }
50 
51   @java.lang.Override
getUnknownFields()52   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
53     return this.unknownFields;
54   }
55 
getDescriptor()56   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
57     return com.google.cloud.compute.v1.Compute
58         .internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_descriptor;
59   }
60 
61   @java.lang.Override
62   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()63       internalGetFieldAccessorTable() {
64     return com.google.cloud.compute.v1.Compute
65         .internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_fieldAccessorTable
66         .ensureFieldAccessorsInitialized(
67             com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings.class,
68             com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings.Builder.class);
69   }
70 
71   private int bitField0_;
72   public static final int HTTP_COOKIE_FIELD_NUMBER = 6673915;
73   private com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie httpCookie_;
74   /**
75    *
76    *
77    * <pre>
78    * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
79    * </pre>
80    *
81    * <code>
82    * optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
83    * </code>
84    *
85    * @return Whether the httpCookie field is set.
86    */
87   @java.lang.Override
hasHttpCookie()88   public boolean hasHttpCookie() {
89     return ((bitField0_ & 0x00000001) != 0);
90   }
91   /**
92    *
93    *
94    * <pre>
95    * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
96    * </pre>
97    *
98    * <code>
99    * optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
100    * </code>
101    *
102    * @return The httpCookie.
103    */
104   @java.lang.Override
getHttpCookie()105   public com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie getHttpCookie() {
106     return httpCookie_ == null
107         ? com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie
108             .getDefaultInstance()
109         : httpCookie_;
110   }
111   /**
112    *
113    *
114    * <pre>
115    * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
116    * </pre>
117    *
118    * <code>
119    * optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
120    * </code>
121    */
122   @java.lang.Override
123   public com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookieOrBuilder
getHttpCookieOrBuilder()124       getHttpCookieOrBuilder() {
125     return httpCookie_ == null
126         ? com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie
127             .getDefaultInstance()
128         : httpCookie_;
129   }
130 
131   public static final int HTTP_HEADER_NAME_FIELD_NUMBER = 234798022;
132 
133   @SuppressWarnings("serial")
134   private volatile java.lang.Object httpHeaderName_ = "";
135   /**
136    *
137    *
138    * <pre>
139    * The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
140    * </pre>
141    *
142    * <code>optional string http_header_name = 234798022;</code>
143    *
144    * @return Whether the httpHeaderName field is set.
145    */
146   @java.lang.Override
hasHttpHeaderName()147   public boolean hasHttpHeaderName() {
148     return ((bitField0_ & 0x00000002) != 0);
149   }
150   /**
151    *
152    *
153    * <pre>
154    * The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
155    * </pre>
156    *
157    * <code>optional string http_header_name = 234798022;</code>
158    *
159    * @return The httpHeaderName.
160    */
161   @java.lang.Override
getHttpHeaderName()162   public java.lang.String getHttpHeaderName() {
163     java.lang.Object ref = httpHeaderName_;
164     if (ref instanceof java.lang.String) {
165       return (java.lang.String) ref;
166     } else {
167       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
168       java.lang.String s = bs.toStringUtf8();
169       httpHeaderName_ = s;
170       return s;
171     }
172   }
173   /**
174    *
175    *
176    * <pre>
177    * The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
178    * </pre>
179    *
180    * <code>optional string http_header_name = 234798022;</code>
181    *
182    * @return The bytes for httpHeaderName.
183    */
184   @java.lang.Override
getHttpHeaderNameBytes()185   public com.google.protobuf.ByteString getHttpHeaderNameBytes() {
186     java.lang.Object ref = httpHeaderName_;
187     if (ref instanceof java.lang.String) {
188       com.google.protobuf.ByteString b =
189           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
190       httpHeaderName_ = b;
191       return b;
192     } else {
193       return (com.google.protobuf.ByteString) ref;
194     }
195   }
196 
197   public static final int MINIMUM_RING_SIZE_FIELD_NUMBER = 234380735;
198   private long minimumRingSize_ = 0L;
199   /**
200    *
201    *
202    * <pre>
203    * The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
204    * </pre>
205    *
206    * <code>optional int64 minimum_ring_size = 234380735;</code>
207    *
208    * @return Whether the minimumRingSize field is set.
209    */
210   @java.lang.Override
hasMinimumRingSize()211   public boolean hasMinimumRingSize() {
212     return ((bitField0_ & 0x00000004) != 0);
213   }
214   /**
215    *
216    *
217    * <pre>
218    * The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
219    * </pre>
220    *
221    * <code>optional int64 minimum_ring_size = 234380735;</code>
222    *
223    * @return The minimumRingSize.
224    */
225   @java.lang.Override
getMinimumRingSize()226   public long getMinimumRingSize() {
227     return minimumRingSize_;
228   }
229 
230   private byte memoizedIsInitialized = -1;
231 
232   @java.lang.Override
isInitialized()233   public final boolean isInitialized() {
234     byte isInitialized = memoizedIsInitialized;
235     if (isInitialized == 1) return true;
236     if (isInitialized == 0) return false;
237 
238     memoizedIsInitialized = 1;
239     return true;
240   }
241 
242   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)243   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
244     if (((bitField0_ & 0x00000001) != 0)) {
245       output.writeMessage(6673915, getHttpCookie());
246     }
247     if (((bitField0_ & 0x00000004) != 0)) {
248       output.writeInt64(234380735, minimumRingSize_);
249     }
250     if (((bitField0_ & 0x00000002) != 0)) {
251       com.google.protobuf.GeneratedMessageV3.writeString(output, 234798022, httpHeaderName_);
252     }
253     getUnknownFields().writeTo(output);
254   }
255 
256   @java.lang.Override
getSerializedSize()257   public int getSerializedSize() {
258     int size = memoizedSize;
259     if (size != -1) return size;
260 
261     size = 0;
262     if (((bitField0_ & 0x00000001) != 0)) {
263       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6673915, getHttpCookie());
264     }
265     if (((bitField0_ & 0x00000004) != 0)) {
266       size += com.google.protobuf.CodedOutputStream.computeInt64Size(234380735, minimumRingSize_);
267     }
268     if (((bitField0_ & 0x00000002) != 0)) {
269       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(234798022, httpHeaderName_);
270     }
271     size += getUnknownFields().getSerializedSize();
272     memoizedSize = size;
273     return size;
274   }
275 
276   @java.lang.Override
equals(final java.lang.Object obj)277   public boolean equals(final java.lang.Object obj) {
278     if (obj == this) {
279       return true;
280     }
281     if (!(obj instanceof com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings)) {
282       return super.equals(obj);
283     }
284     com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings other =
285         (com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings) obj;
286 
287     if (hasHttpCookie() != other.hasHttpCookie()) return false;
288     if (hasHttpCookie()) {
289       if (!getHttpCookie().equals(other.getHttpCookie())) return false;
290     }
291     if (hasHttpHeaderName() != other.hasHttpHeaderName()) return false;
292     if (hasHttpHeaderName()) {
293       if (!getHttpHeaderName().equals(other.getHttpHeaderName())) return false;
294     }
295     if (hasMinimumRingSize() != other.hasMinimumRingSize()) return false;
296     if (hasMinimumRingSize()) {
297       if (getMinimumRingSize() != other.getMinimumRingSize()) return false;
298     }
299     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
300     return true;
301   }
302 
303   @java.lang.Override
hashCode()304   public int hashCode() {
305     if (memoizedHashCode != 0) {
306       return memoizedHashCode;
307     }
308     int hash = 41;
309     hash = (19 * hash) + getDescriptor().hashCode();
310     if (hasHttpCookie()) {
311       hash = (37 * hash) + HTTP_COOKIE_FIELD_NUMBER;
312       hash = (53 * hash) + getHttpCookie().hashCode();
313     }
314     if (hasHttpHeaderName()) {
315       hash = (37 * hash) + HTTP_HEADER_NAME_FIELD_NUMBER;
316       hash = (53 * hash) + getHttpHeaderName().hashCode();
317     }
318     if (hasMinimumRingSize()) {
319       hash = (37 * hash) + MINIMUM_RING_SIZE_FIELD_NUMBER;
320       hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinimumRingSize());
321     }
322     hash = (29 * hash) + getUnknownFields().hashCode();
323     memoizedHashCode = hash;
324     return hash;
325   }
326 
parseFrom( java.nio.ByteBuffer data)327   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings parseFrom(
328       java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
329     return PARSER.parseFrom(data);
330   }
331 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)332   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings parseFrom(
333       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
334       throws com.google.protobuf.InvalidProtocolBufferException {
335     return PARSER.parseFrom(data, extensionRegistry);
336   }
337 
parseFrom( com.google.protobuf.ByteString data)338   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings parseFrom(
339       com.google.protobuf.ByteString data)
340       throws com.google.protobuf.InvalidProtocolBufferException {
341     return PARSER.parseFrom(data);
342   }
343 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)344   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings parseFrom(
345       com.google.protobuf.ByteString data,
346       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
347       throws com.google.protobuf.InvalidProtocolBufferException {
348     return PARSER.parseFrom(data, extensionRegistry);
349   }
350 
parseFrom( byte[] data)351   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings parseFrom(
352       byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
353     return PARSER.parseFrom(data);
354   }
355 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)356   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings parseFrom(
357       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
358       throws com.google.protobuf.InvalidProtocolBufferException {
359     return PARSER.parseFrom(data, extensionRegistry);
360   }
361 
parseFrom( java.io.InputStream input)362   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings parseFrom(
363       java.io.InputStream input) throws java.io.IOException {
364     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
365   }
366 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)367   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings parseFrom(
368       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
369       throws java.io.IOException {
370     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
371         PARSER, input, extensionRegistry);
372   }
373 
parseDelimitedFrom( java.io.InputStream input)374   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings parseDelimitedFrom(
375       java.io.InputStream input) throws java.io.IOException {
376     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
377   }
378 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)379   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings parseDelimitedFrom(
380       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
381       throws java.io.IOException {
382     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
383         PARSER, input, extensionRegistry);
384   }
385 
parseFrom( com.google.protobuf.CodedInputStream input)386   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings parseFrom(
387       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
388     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
389   }
390 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)391   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings parseFrom(
392       com.google.protobuf.CodedInputStream input,
393       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
394       throws java.io.IOException {
395     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
396         PARSER, input, extensionRegistry);
397   }
398 
399   @java.lang.Override
newBuilderForType()400   public Builder newBuilderForType() {
401     return newBuilder();
402   }
403 
newBuilder()404   public static Builder newBuilder() {
405     return DEFAULT_INSTANCE.toBuilder();
406   }
407 
newBuilder( com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings prototype)408   public static Builder newBuilder(
409       com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings prototype) {
410     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
411   }
412 
413   @java.lang.Override
toBuilder()414   public Builder toBuilder() {
415     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
416   }
417 
418   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)419   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
420     Builder builder = new Builder(parent);
421     return builder;
422   }
423   /**
424    *
425    *
426    * <pre>
427    * This message defines settings for a consistent hash style load balancer.
428    * </pre>
429    *
430    * Protobuf type {@code google.cloud.compute.v1.ConsistentHashLoadBalancerSettings}
431    */
432   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
433       implements
434       // @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.ConsistentHashLoadBalancerSettings)
435       com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsOrBuilder {
getDescriptor()436     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
437       return com.google.cloud.compute.v1.Compute
438           .internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_descriptor;
439     }
440 
441     @java.lang.Override
442     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()443         internalGetFieldAccessorTable() {
444       return com.google.cloud.compute.v1.Compute
445           .internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_fieldAccessorTable
446           .ensureFieldAccessorsInitialized(
447               com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings.class,
448               com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings.Builder.class);
449     }
450 
451     // Construct using com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings.newBuilder()
Builder()452     private Builder() {
453       maybeForceBuilderInitialization();
454     }
455 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)456     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
457       super(parent);
458       maybeForceBuilderInitialization();
459     }
460 
maybeForceBuilderInitialization()461     private void maybeForceBuilderInitialization() {
462       if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
463         getHttpCookieFieldBuilder();
464       }
465     }
466 
467     @java.lang.Override
clear()468     public Builder clear() {
469       super.clear();
470       bitField0_ = 0;
471       httpCookie_ = null;
472       if (httpCookieBuilder_ != null) {
473         httpCookieBuilder_.dispose();
474         httpCookieBuilder_ = null;
475       }
476       httpHeaderName_ = "";
477       minimumRingSize_ = 0L;
478       return this;
479     }
480 
481     @java.lang.Override
getDescriptorForType()482     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
483       return com.google.cloud.compute.v1.Compute
484           .internal_static_google_cloud_compute_v1_ConsistentHashLoadBalancerSettings_descriptor;
485     }
486 
487     @java.lang.Override
488     public com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings
getDefaultInstanceForType()489         getDefaultInstanceForType() {
490       return com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings.getDefaultInstance();
491     }
492 
493     @java.lang.Override
build()494     public com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings build() {
495       com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings result = buildPartial();
496       if (!result.isInitialized()) {
497         throw newUninitializedMessageException(result);
498       }
499       return result;
500     }
501 
502     @java.lang.Override
buildPartial()503     public com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings buildPartial() {
504       com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings result =
505           new com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings(this);
506       if (bitField0_ != 0) {
507         buildPartial0(result);
508       }
509       onBuilt();
510       return result;
511     }
512 
buildPartial0( com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings result)513     private void buildPartial0(
514         com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings result) {
515       int from_bitField0_ = bitField0_;
516       int to_bitField0_ = 0;
517       if (((from_bitField0_ & 0x00000001) != 0)) {
518         result.httpCookie_ = httpCookieBuilder_ == null ? httpCookie_ : httpCookieBuilder_.build();
519         to_bitField0_ |= 0x00000001;
520       }
521       if (((from_bitField0_ & 0x00000002) != 0)) {
522         result.httpHeaderName_ = httpHeaderName_;
523         to_bitField0_ |= 0x00000002;
524       }
525       if (((from_bitField0_ & 0x00000004) != 0)) {
526         result.minimumRingSize_ = minimumRingSize_;
527         to_bitField0_ |= 0x00000004;
528       }
529       result.bitField0_ |= to_bitField0_;
530     }
531 
532     @java.lang.Override
clone()533     public Builder clone() {
534       return super.clone();
535     }
536 
537     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)538     public Builder setField(
539         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
540       return super.setField(field, value);
541     }
542 
543     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)544     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
545       return super.clearField(field);
546     }
547 
548     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)549     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
550       return super.clearOneof(oneof);
551     }
552 
553     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)554     public Builder setRepeatedField(
555         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
556       return super.setRepeatedField(field, index, value);
557     }
558 
559     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)560     public Builder addRepeatedField(
561         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
562       return super.addRepeatedField(field, value);
563     }
564 
565     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)566     public Builder mergeFrom(com.google.protobuf.Message other) {
567       if (other instanceof com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings) {
568         return mergeFrom((com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings) other);
569       } else {
570         super.mergeFrom(other);
571         return this;
572       }
573     }
574 
mergeFrom(com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings other)575     public Builder mergeFrom(com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings other) {
576       if (other
577           == com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings.getDefaultInstance())
578         return this;
579       if (other.hasHttpCookie()) {
580         mergeHttpCookie(other.getHttpCookie());
581       }
582       if (other.hasHttpHeaderName()) {
583         httpHeaderName_ = other.httpHeaderName_;
584         bitField0_ |= 0x00000002;
585         onChanged();
586       }
587       if (other.hasMinimumRingSize()) {
588         setMinimumRingSize(other.getMinimumRingSize());
589       }
590       this.mergeUnknownFields(other.getUnknownFields());
591       onChanged();
592       return this;
593     }
594 
595     @java.lang.Override
isInitialized()596     public final boolean isInitialized() {
597       return true;
598     }
599 
600     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)601     public Builder mergeFrom(
602         com.google.protobuf.CodedInputStream input,
603         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
604         throws java.io.IOException {
605       if (extensionRegistry == null) {
606         throw new java.lang.NullPointerException();
607       }
608       try {
609         boolean done = false;
610         while (!done) {
611           int tag = input.readTag();
612           switch (tag) {
613             case 0:
614               done = true;
615               break;
616             case 53391322:
617               {
618                 input.readMessage(getHttpCookieFieldBuilder().getBuilder(), extensionRegistry);
619                 bitField0_ |= 0x00000001;
620                 break;
621               } // case 53391322
622             case 1875045880:
623               {
624                 minimumRingSize_ = input.readInt64();
625                 bitField0_ |= 0x00000004;
626                 break;
627               } // case 1875045880
628             case 1878384178:
629               {
630                 httpHeaderName_ = input.readStringRequireUtf8();
631                 bitField0_ |= 0x00000002;
632                 break;
633               } // case 1878384178
634             default:
635               {
636                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
637                   done = true; // was an endgroup tag
638                 }
639                 break;
640               } // default:
641           } // switch (tag)
642         } // while (!done)
643       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
644         throw e.unwrapIOException();
645       } finally {
646         onChanged();
647       } // finally
648       return this;
649     }
650 
651     private int bitField0_;
652 
653     private com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie httpCookie_;
654     private com.google.protobuf.SingleFieldBuilderV3<
655             com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie,
656             com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie.Builder,
657             com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookieOrBuilder>
658         httpCookieBuilder_;
659     /**
660      *
661      *
662      * <pre>
663      * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
664      * </pre>
665      *
666      * <code>
667      * optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
668      * </code>
669      *
670      * @return Whether the httpCookie field is set.
671      */
hasHttpCookie()672     public boolean hasHttpCookie() {
673       return ((bitField0_ & 0x00000001) != 0);
674     }
675     /**
676      *
677      *
678      * <pre>
679      * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
680      * </pre>
681      *
682      * <code>
683      * optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
684      * </code>
685      *
686      * @return The httpCookie.
687      */
688     public com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie
getHttpCookie()689         getHttpCookie() {
690       if (httpCookieBuilder_ == null) {
691         return httpCookie_ == null
692             ? com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie
693                 .getDefaultInstance()
694             : httpCookie_;
695       } else {
696         return httpCookieBuilder_.getMessage();
697       }
698     }
699     /**
700      *
701      *
702      * <pre>
703      * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
704      * </pre>
705      *
706      * <code>
707      * optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
708      * </code>
709      */
setHttpCookie( com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie value)710     public Builder setHttpCookie(
711         com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie value) {
712       if (httpCookieBuilder_ == null) {
713         if (value == null) {
714           throw new NullPointerException();
715         }
716         httpCookie_ = value;
717       } else {
718         httpCookieBuilder_.setMessage(value);
719       }
720       bitField0_ |= 0x00000001;
721       onChanged();
722       return this;
723     }
724     /**
725      *
726      *
727      * <pre>
728      * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
729      * </pre>
730      *
731      * <code>
732      * optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
733      * </code>
734      */
setHttpCookie( com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie.Builder builderForValue)735     public Builder setHttpCookie(
736         com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie.Builder
737             builderForValue) {
738       if (httpCookieBuilder_ == null) {
739         httpCookie_ = builderForValue.build();
740       } else {
741         httpCookieBuilder_.setMessage(builderForValue.build());
742       }
743       bitField0_ |= 0x00000001;
744       onChanged();
745       return this;
746     }
747     /**
748      *
749      *
750      * <pre>
751      * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
752      * </pre>
753      *
754      * <code>
755      * optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
756      * </code>
757      */
mergeHttpCookie( com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie value)758     public Builder mergeHttpCookie(
759         com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie value) {
760       if (httpCookieBuilder_ == null) {
761         if (((bitField0_ & 0x00000001) != 0)
762             && httpCookie_ != null
763             && httpCookie_
764                 != com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie
765                     .getDefaultInstance()) {
766           getHttpCookieBuilder().mergeFrom(value);
767         } else {
768           httpCookie_ = value;
769         }
770       } else {
771         httpCookieBuilder_.mergeFrom(value);
772       }
773       bitField0_ |= 0x00000001;
774       onChanged();
775       return this;
776     }
777     /**
778      *
779      *
780      * <pre>
781      * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
782      * </pre>
783      *
784      * <code>
785      * optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
786      * </code>
787      */
clearHttpCookie()788     public Builder clearHttpCookie() {
789       bitField0_ = (bitField0_ & ~0x00000001);
790       httpCookie_ = null;
791       if (httpCookieBuilder_ != null) {
792         httpCookieBuilder_.dispose();
793         httpCookieBuilder_ = null;
794       }
795       onChanged();
796       return this;
797     }
798     /**
799      *
800      *
801      * <pre>
802      * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
803      * </pre>
804      *
805      * <code>
806      * optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
807      * </code>
808      */
809     public com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie.Builder
getHttpCookieBuilder()810         getHttpCookieBuilder() {
811       bitField0_ |= 0x00000001;
812       onChanged();
813       return getHttpCookieFieldBuilder().getBuilder();
814     }
815     /**
816      *
817      *
818      * <pre>
819      * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
820      * </pre>
821      *
822      * <code>
823      * optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
824      * </code>
825      */
826     public com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookieOrBuilder
getHttpCookieOrBuilder()827         getHttpCookieOrBuilder() {
828       if (httpCookieBuilder_ != null) {
829         return httpCookieBuilder_.getMessageOrBuilder();
830       } else {
831         return httpCookie_ == null
832             ? com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie
833                 .getDefaultInstance()
834             : httpCookie_;
835       }
836     }
837     /**
838      *
839      *
840      * <pre>
841      * Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
842      * </pre>
843      *
844      * <code>
845      * optional .google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie http_cookie = 6673915;
846      * </code>
847      */
848     private com.google.protobuf.SingleFieldBuilderV3<
849             com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie,
850             com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie.Builder,
851             com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookieOrBuilder>
getHttpCookieFieldBuilder()852         getHttpCookieFieldBuilder() {
853       if (httpCookieBuilder_ == null) {
854         httpCookieBuilder_ =
855             new com.google.protobuf.SingleFieldBuilderV3<
856                 com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie,
857                 com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookie.Builder,
858                 com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettingsHttpCookieOrBuilder>(
859                 getHttpCookie(), getParentForChildren(), isClean());
860         httpCookie_ = null;
861       }
862       return httpCookieBuilder_;
863     }
864 
865     private java.lang.Object httpHeaderName_ = "";
866     /**
867      *
868      *
869      * <pre>
870      * The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
871      * </pre>
872      *
873      * <code>optional string http_header_name = 234798022;</code>
874      *
875      * @return Whether the httpHeaderName field is set.
876      */
hasHttpHeaderName()877     public boolean hasHttpHeaderName() {
878       return ((bitField0_ & 0x00000002) != 0);
879     }
880     /**
881      *
882      *
883      * <pre>
884      * The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
885      * </pre>
886      *
887      * <code>optional string http_header_name = 234798022;</code>
888      *
889      * @return The httpHeaderName.
890      */
getHttpHeaderName()891     public java.lang.String getHttpHeaderName() {
892       java.lang.Object ref = httpHeaderName_;
893       if (!(ref instanceof java.lang.String)) {
894         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
895         java.lang.String s = bs.toStringUtf8();
896         httpHeaderName_ = s;
897         return s;
898       } else {
899         return (java.lang.String) ref;
900       }
901     }
902     /**
903      *
904      *
905      * <pre>
906      * The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
907      * </pre>
908      *
909      * <code>optional string http_header_name = 234798022;</code>
910      *
911      * @return The bytes for httpHeaderName.
912      */
getHttpHeaderNameBytes()913     public com.google.protobuf.ByteString getHttpHeaderNameBytes() {
914       java.lang.Object ref = httpHeaderName_;
915       if (ref instanceof String) {
916         com.google.protobuf.ByteString b =
917             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
918         httpHeaderName_ = b;
919         return b;
920       } else {
921         return (com.google.protobuf.ByteString) ref;
922       }
923     }
924     /**
925      *
926      *
927      * <pre>
928      * The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
929      * </pre>
930      *
931      * <code>optional string http_header_name = 234798022;</code>
932      *
933      * @param value The httpHeaderName to set.
934      * @return This builder for chaining.
935      */
setHttpHeaderName(java.lang.String value)936     public Builder setHttpHeaderName(java.lang.String value) {
937       if (value == null) {
938         throw new NullPointerException();
939       }
940       httpHeaderName_ = value;
941       bitField0_ |= 0x00000002;
942       onChanged();
943       return this;
944     }
945     /**
946      *
947      *
948      * <pre>
949      * The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
950      * </pre>
951      *
952      * <code>optional string http_header_name = 234798022;</code>
953      *
954      * @return This builder for chaining.
955      */
clearHttpHeaderName()956     public Builder clearHttpHeaderName() {
957       httpHeaderName_ = getDefaultInstance().getHttpHeaderName();
958       bitField0_ = (bitField0_ & ~0x00000002);
959       onChanged();
960       return this;
961     }
962     /**
963      *
964      *
965      * <pre>
966      * The hash based on the value of the specified header field. This field is applicable if the sessionAffinity is set to HEADER_FIELD.
967      * </pre>
968      *
969      * <code>optional string http_header_name = 234798022;</code>
970      *
971      * @param value The bytes for httpHeaderName to set.
972      * @return This builder for chaining.
973      */
setHttpHeaderNameBytes(com.google.protobuf.ByteString value)974     public Builder setHttpHeaderNameBytes(com.google.protobuf.ByteString value) {
975       if (value == null) {
976         throw new NullPointerException();
977       }
978       checkByteStringIsUtf8(value);
979       httpHeaderName_ = value;
980       bitField0_ |= 0x00000002;
981       onChanged();
982       return this;
983     }
984 
985     private long minimumRingSize_;
986     /**
987      *
988      *
989      * <pre>
990      * The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
991      * </pre>
992      *
993      * <code>optional int64 minimum_ring_size = 234380735;</code>
994      *
995      * @return Whether the minimumRingSize field is set.
996      */
997     @java.lang.Override
hasMinimumRingSize()998     public boolean hasMinimumRingSize() {
999       return ((bitField0_ & 0x00000004) != 0);
1000     }
1001     /**
1002      *
1003      *
1004      * <pre>
1005      * The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
1006      * </pre>
1007      *
1008      * <code>optional int64 minimum_ring_size = 234380735;</code>
1009      *
1010      * @return The minimumRingSize.
1011      */
1012     @java.lang.Override
getMinimumRingSize()1013     public long getMinimumRingSize() {
1014       return minimumRingSize_;
1015     }
1016     /**
1017      *
1018      *
1019      * <pre>
1020      * The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
1021      * </pre>
1022      *
1023      * <code>optional int64 minimum_ring_size = 234380735;</code>
1024      *
1025      * @param value The minimumRingSize to set.
1026      * @return This builder for chaining.
1027      */
setMinimumRingSize(long value)1028     public Builder setMinimumRingSize(long value) {
1029 
1030       minimumRingSize_ = value;
1031       bitField0_ |= 0x00000004;
1032       onChanged();
1033       return this;
1034     }
1035     /**
1036      *
1037      *
1038      * <pre>
1039      * The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
1040      * </pre>
1041      *
1042      * <code>optional int64 minimum_ring_size = 234380735;</code>
1043      *
1044      * @return This builder for chaining.
1045      */
clearMinimumRingSize()1046     public Builder clearMinimumRingSize() {
1047       bitField0_ = (bitField0_ & ~0x00000004);
1048       minimumRingSize_ = 0L;
1049       onChanged();
1050       return this;
1051     }
1052 
1053     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)1054     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
1055       return super.setUnknownFields(unknownFields);
1056     }
1057 
1058     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)1059     public final Builder mergeUnknownFields(
1060         final com.google.protobuf.UnknownFieldSet unknownFields) {
1061       return super.mergeUnknownFields(unknownFields);
1062     }
1063 
1064     // @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.ConsistentHashLoadBalancerSettings)
1065   }
1066 
1067   // @@protoc_insertion_point(class_scope:google.cloud.compute.v1.ConsistentHashLoadBalancerSettings)
1068   private static final com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings
1069       DEFAULT_INSTANCE;
1070 
1071   static {
1072     DEFAULT_INSTANCE = new com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings();
1073   }
1074 
1075   public static com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings
getDefaultInstance()1076       getDefaultInstance() {
1077     return DEFAULT_INSTANCE;
1078   }
1079 
1080   private static final com.google.protobuf.Parser<ConsistentHashLoadBalancerSettings> PARSER =
1081       new com.google.protobuf.AbstractParser<ConsistentHashLoadBalancerSettings>() {
1082         @java.lang.Override
1083         public ConsistentHashLoadBalancerSettings parsePartialFrom(
1084             com.google.protobuf.CodedInputStream input,
1085             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1086             throws com.google.protobuf.InvalidProtocolBufferException {
1087           Builder builder = newBuilder();
1088           try {
1089             builder.mergeFrom(input, extensionRegistry);
1090           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1091             throw e.setUnfinishedMessage(builder.buildPartial());
1092           } catch (com.google.protobuf.UninitializedMessageException e) {
1093             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1094           } catch (java.io.IOException e) {
1095             throw new com.google.protobuf.InvalidProtocolBufferException(e)
1096                 .setUnfinishedMessage(builder.buildPartial());
1097           }
1098           return builder.buildPartial();
1099         }
1100       };
1101 
parser()1102   public static com.google.protobuf.Parser<ConsistentHashLoadBalancerSettings> parser() {
1103     return PARSER;
1104   }
1105 
1106   @java.lang.Override
getParserForType()1107   public com.google.protobuf.Parser<ConsistentHashLoadBalancerSettings> getParserForType() {
1108     return PARSER;
1109   }
1110 
1111   @java.lang.Override
1112   public com.google.cloud.compute.v1.ConsistentHashLoadBalancerSettings
getDefaultInstanceForType()1113       getDefaultInstanceForType() {
1114     return DEFAULT_INSTANCE;
1115   }
1116 }
1117