• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/gaming/v1/common.proto
18 
19 package com.google.cloud.gaming.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * The realm selector, used to match realm resources.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.gaming.v1.RealmSelector}
29  */
30 public final class RealmSelector extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1.RealmSelector)
33     RealmSelectorOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use RealmSelector.newBuilder() to construct.
RealmSelector(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private RealmSelector(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
RealmSelector()40   private RealmSelector() {
41     realms_ = com.google.protobuf.LazyStringArrayList.EMPTY;
42   }
43 
44   @java.lang.Override
45   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)46   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47     return new RealmSelector();
48   }
49 
50   @java.lang.Override
getUnknownFields()51   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52     return this.unknownFields;
53   }
54 
getDescriptor()55   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
56     return com.google.cloud.gaming.v1.Common
57         .internal_static_google_cloud_gaming_v1_RealmSelector_descriptor;
58   }
59 
60   @java.lang.Override
61   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()62       internalGetFieldAccessorTable() {
63     return com.google.cloud.gaming.v1.Common
64         .internal_static_google_cloud_gaming_v1_RealmSelector_fieldAccessorTable
65         .ensureFieldAccessorsInitialized(
66             com.google.cloud.gaming.v1.RealmSelector.class,
67             com.google.cloud.gaming.v1.RealmSelector.Builder.class);
68   }
69 
70   public static final int REALMS_FIELD_NUMBER = 1;
71 
72   @SuppressWarnings("serial")
73   private com.google.protobuf.LazyStringList realms_;
74   /**
75    *
76    *
77    * <pre>
78    * List of realms to match.
79    * </pre>
80    *
81    * <code>repeated string realms = 1;</code>
82    *
83    * @return A list containing the realms.
84    */
getRealmsList()85   public com.google.protobuf.ProtocolStringList getRealmsList() {
86     return realms_;
87   }
88   /**
89    *
90    *
91    * <pre>
92    * List of realms to match.
93    * </pre>
94    *
95    * <code>repeated string realms = 1;</code>
96    *
97    * @return The count of realms.
98    */
getRealmsCount()99   public int getRealmsCount() {
100     return realms_.size();
101   }
102   /**
103    *
104    *
105    * <pre>
106    * List of realms to match.
107    * </pre>
108    *
109    * <code>repeated string realms = 1;</code>
110    *
111    * @param index The index of the element to return.
112    * @return The realms at the given index.
113    */
getRealms(int index)114   public java.lang.String getRealms(int index) {
115     return realms_.get(index);
116   }
117   /**
118    *
119    *
120    * <pre>
121    * List of realms to match.
122    * </pre>
123    *
124    * <code>repeated string realms = 1;</code>
125    *
126    * @param index The index of the value to return.
127    * @return The bytes of the realms at the given index.
128    */
getRealmsBytes(int index)129   public com.google.protobuf.ByteString getRealmsBytes(int index) {
130     return realms_.getByteString(index);
131   }
132 
133   private byte memoizedIsInitialized = -1;
134 
135   @java.lang.Override
isInitialized()136   public final boolean isInitialized() {
137     byte isInitialized = memoizedIsInitialized;
138     if (isInitialized == 1) return true;
139     if (isInitialized == 0) return false;
140 
141     memoizedIsInitialized = 1;
142     return true;
143   }
144 
145   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)146   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
147     for (int i = 0; i < realms_.size(); i++) {
148       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, realms_.getRaw(i));
149     }
150     getUnknownFields().writeTo(output);
151   }
152 
153   @java.lang.Override
getSerializedSize()154   public int getSerializedSize() {
155     int size = memoizedSize;
156     if (size != -1) return size;
157 
158     size = 0;
159     {
160       int dataSize = 0;
161       for (int i = 0; i < realms_.size(); i++) {
162         dataSize += computeStringSizeNoTag(realms_.getRaw(i));
163       }
164       size += dataSize;
165       size += 1 * getRealmsList().size();
166     }
167     size += getUnknownFields().getSerializedSize();
168     memoizedSize = size;
169     return size;
170   }
171 
172   @java.lang.Override
equals(final java.lang.Object obj)173   public boolean equals(final java.lang.Object obj) {
174     if (obj == this) {
175       return true;
176     }
177     if (!(obj instanceof com.google.cloud.gaming.v1.RealmSelector)) {
178       return super.equals(obj);
179     }
180     com.google.cloud.gaming.v1.RealmSelector other = (com.google.cloud.gaming.v1.RealmSelector) obj;
181 
182     if (!getRealmsList().equals(other.getRealmsList())) return false;
183     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
184     return true;
185   }
186 
187   @java.lang.Override
hashCode()188   public int hashCode() {
189     if (memoizedHashCode != 0) {
190       return memoizedHashCode;
191     }
192     int hash = 41;
193     hash = (19 * hash) + getDescriptor().hashCode();
194     if (getRealmsCount() > 0) {
195       hash = (37 * hash) + REALMS_FIELD_NUMBER;
196       hash = (53 * hash) + getRealmsList().hashCode();
197     }
198     hash = (29 * hash) + getUnknownFields().hashCode();
199     memoizedHashCode = hash;
200     return hash;
201   }
202 
parseFrom(java.nio.ByteBuffer data)203   public static com.google.cloud.gaming.v1.RealmSelector parseFrom(java.nio.ByteBuffer data)
204       throws com.google.protobuf.InvalidProtocolBufferException {
205     return PARSER.parseFrom(data);
206   }
207 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)208   public static com.google.cloud.gaming.v1.RealmSelector parseFrom(
209       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
210       throws com.google.protobuf.InvalidProtocolBufferException {
211     return PARSER.parseFrom(data, extensionRegistry);
212   }
213 
parseFrom( com.google.protobuf.ByteString data)214   public static com.google.cloud.gaming.v1.RealmSelector parseFrom(
215       com.google.protobuf.ByteString data)
216       throws com.google.protobuf.InvalidProtocolBufferException {
217     return PARSER.parseFrom(data);
218   }
219 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)220   public static com.google.cloud.gaming.v1.RealmSelector parseFrom(
221       com.google.protobuf.ByteString data,
222       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
223       throws com.google.protobuf.InvalidProtocolBufferException {
224     return PARSER.parseFrom(data, extensionRegistry);
225   }
226 
parseFrom(byte[] data)227   public static com.google.cloud.gaming.v1.RealmSelector parseFrom(byte[] data)
228       throws com.google.protobuf.InvalidProtocolBufferException {
229     return PARSER.parseFrom(data);
230   }
231 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)232   public static com.google.cloud.gaming.v1.RealmSelector parseFrom(
233       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
234       throws com.google.protobuf.InvalidProtocolBufferException {
235     return PARSER.parseFrom(data, extensionRegistry);
236   }
237 
parseFrom(java.io.InputStream input)238   public static com.google.cloud.gaming.v1.RealmSelector parseFrom(java.io.InputStream input)
239       throws java.io.IOException {
240     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
241   }
242 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)243   public static com.google.cloud.gaming.v1.RealmSelector parseFrom(
244       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
245       throws java.io.IOException {
246     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
247         PARSER, input, extensionRegistry);
248   }
249 
parseDelimitedFrom( java.io.InputStream input)250   public static com.google.cloud.gaming.v1.RealmSelector parseDelimitedFrom(
251       java.io.InputStream input) throws java.io.IOException {
252     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
253   }
254 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)255   public static com.google.cloud.gaming.v1.RealmSelector parseDelimitedFrom(
256       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
257       throws java.io.IOException {
258     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
259         PARSER, input, extensionRegistry);
260   }
261 
parseFrom( com.google.protobuf.CodedInputStream input)262   public static com.google.cloud.gaming.v1.RealmSelector parseFrom(
263       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
264     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
265   }
266 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)267   public static com.google.cloud.gaming.v1.RealmSelector parseFrom(
268       com.google.protobuf.CodedInputStream input,
269       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
270       throws java.io.IOException {
271     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
272         PARSER, input, extensionRegistry);
273   }
274 
275   @java.lang.Override
newBuilderForType()276   public Builder newBuilderForType() {
277     return newBuilder();
278   }
279 
newBuilder()280   public static Builder newBuilder() {
281     return DEFAULT_INSTANCE.toBuilder();
282   }
283 
newBuilder(com.google.cloud.gaming.v1.RealmSelector prototype)284   public static Builder newBuilder(com.google.cloud.gaming.v1.RealmSelector prototype) {
285     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
286   }
287 
288   @java.lang.Override
toBuilder()289   public Builder toBuilder() {
290     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
291   }
292 
293   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)294   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
295     Builder builder = new Builder(parent);
296     return builder;
297   }
298   /**
299    *
300    *
301    * <pre>
302    * The realm selector, used to match realm resources.
303    * </pre>
304    *
305    * Protobuf type {@code google.cloud.gaming.v1.RealmSelector}
306    */
307   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
308       implements
309       // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1.RealmSelector)
310       com.google.cloud.gaming.v1.RealmSelectorOrBuilder {
getDescriptor()311     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
312       return com.google.cloud.gaming.v1.Common
313           .internal_static_google_cloud_gaming_v1_RealmSelector_descriptor;
314     }
315 
316     @java.lang.Override
317     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()318         internalGetFieldAccessorTable() {
319       return com.google.cloud.gaming.v1.Common
320           .internal_static_google_cloud_gaming_v1_RealmSelector_fieldAccessorTable
321           .ensureFieldAccessorsInitialized(
322               com.google.cloud.gaming.v1.RealmSelector.class,
323               com.google.cloud.gaming.v1.RealmSelector.Builder.class);
324     }
325 
326     // Construct using com.google.cloud.gaming.v1.RealmSelector.newBuilder()
Builder()327     private Builder() {}
328 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)329     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
330       super(parent);
331     }
332 
333     @java.lang.Override
clear()334     public Builder clear() {
335       super.clear();
336       bitField0_ = 0;
337       realms_ = com.google.protobuf.LazyStringArrayList.EMPTY;
338       bitField0_ = (bitField0_ & ~0x00000001);
339       return this;
340     }
341 
342     @java.lang.Override
getDescriptorForType()343     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
344       return com.google.cloud.gaming.v1.Common
345           .internal_static_google_cloud_gaming_v1_RealmSelector_descriptor;
346     }
347 
348     @java.lang.Override
getDefaultInstanceForType()349     public com.google.cloud.gaming.v1.RealmSelector getDefaultInstanceForType() {
350       return com.google.cloud.gaming.v1.RealmSelector.getDefaultInstance();
351     }
352 
353     @java.lang.Override
build()354     public com.google.cloud.gaming.v1.RealmSelector build() {
355       com.google.cloud.gaming.v1.RealmSelector result = buildPartial();
356       if (!result.isInitialized()) {
357         throw newUninitializedMessageException(result);
358       }
359       return result;
360     }
361 
362     @java.lang.Override
buildPartial()363     public com.google.cloud.gaming.v1.RealmSelector buildPartial() {
364       com.google.cloud.gaming.v1.RealmSelector result =
365           new com.google.cloud.gaming.v1.RealmSelector(this);
366       buildPartialRepeatedFields(result);
367       if (bitField0_ != 0) {
368         buildPartial0(result);
369       }
370       onBuilt();
371       return result;
372     }
373 
buildPartialRepeatedFields(com.google.cloud.gaming.v1.RealmSelector result)374     private void buildPartialRepeatedFields(com.google.cloud.gaming.v1.RealmSelector result) {
375       if (((bitField0_ & 0x00000001) != 0)) {
376         realms_ = realms_.getUnmodifiableView();
377         bitField0_ = (bitField0_ & ~0x00000001);
378       }
379       result.realms_ = realms_;
380     }
381 
buildPartial0(com.google.cloud.gaming.v1.RealmSelector result)382     private void buildPartial0(com.google.cloud.gaming.v1.RealmSelector result) {
383       int from_bitField0_ = bitField0_;
384     }
385 
386     @java.lang.Override
clone()387     public Builder clone() {
388       return super.clone();
389     }
390 
391     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)392     public Builder setField(
393         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
394       return super.setField(field, value);
395     }
396 
397     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)398     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
399       return super.clearField(field);
400     }
401 
402     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)403     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
404       return super.clearOneof(oneof);
405     }
406 
407     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)408     public Builder setRepeatedField(
409         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
410       return super.setRepeatedField(field, index, value);
411     }
412 
413     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)414     public Builder addRepeatedField(
415         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
416       return super.addRepeatedField(field, value);
417     }
418 
419     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)420     public Builder mergeFrom(com.google.protobuf.Message other) {
421       if (other instanceof com.google.cloud.gaming.v1.RealmSelector) {
422         return mergeFrom((com.google.cloud.gaming.v1.RealmSelector) other);
423       } else {
424         super.mergeFrom(other);
425         return this;
426       }
427     }
428 
mergeFrom(com.google.cloud.gaming.v1.RealmSelector other)429     public Builder mergeFrom(com.google.cloud.gaming.v1.RealmSelector other) {
430       if (other == com.google.cloud.gaming.v1.RealmSelector.getDefaultInstance()) return this;
431       if (!other.realms_.isEmpty()) {
432         if (realms_.isEmpty()) {
433           realms_ = other.realms_;
434           bitField0_ = (bitField0_ & ~0x00000001);
435         } else {
436           ensureRealmsIsMutable();
437           realms_.addAll(other.realms_);
438         }
439         onChanged();
440       }
441       this.mergeUnknownFields(other.getUnknownFields());
442       onChanged();
443       return this;
444     }
445 
446     @java.lang.Override
isInitialized()447     public final boolean isInitialized() {
448       return true;
449     }
450 
451     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)452     public Builder mergeFrom(
453         com.google.protobuf.CodedInputStream input,
454         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
455         throws java.io.IOException {
456       if (extensionRegistry == null) {
457         throw new java.lang.NullPointerException();
458       }
459       try {
460         boolean done = false;
461         while (!done) {
462           int tag = input.readTag();
463           switch (tag) {
464             case 0:
465               done = true;
466               break;
467             case 10:
468               {
469                 java.lang.String s = input.readStringRequireUtf8();
470                 ensureRealmsIsMutable();
471                 realms_.add(s);
472                 break;
473               } // case 10
474             default:
475               {
476                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
477                   done = true; // was an endgroup tag
478                 }
479                 break;
480               } // default:
481           } // switch (tag)
482         } // while (!done)
483       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
484         throw e.unwrapIOException();
485       } finally {
486         onChanged();
487       } // finally
488       return this;
489     }
490 
491     private int bitField0_;
492 
493     private com.google.protobuf.LazyStringList realms_ =
494         com.google.protobuf.LazyStringArrayList.EMPTY;
495 
ensureRealmsIsMutable()496     private void ensureRealmsIsMutable() {
497       if (!((bitField0_ & 0x00000001) != 0)) {
498         realms_ = new com.google.protobuf.LazyStringArrayList(realms_);
499         bitField0_ |= 0x00000001;
500       }
501     }
502     /**
503      *
504      *
505      * <pre>
506      * List of realms to match.
507      * </pre>
508      *
509      * <code>repeated string realms = 1;</code>
510      *
511      * @return A list containing the realms.
512      */
getRealmsList()513     public com.google.protobuf.ProtocolStringList getRealmsList() {
514       return realms_.getUnmodifiableView();
515     }
516     /**
517      *
518      *
519      * <pre>
520      * List of realms to match.
521      * </pre>
522      *
523      * <code>repeated string realms = 1;</code>
524      *
525      * @return The count of realms.
526      */
getRealmsCount()527     public int getRealmsCount() {
528       return realms_.size();
529     }
530     /**
531      *
532      *
533      * <pre>
534      * List of realms to match.
535      * </pre>
536      *
537      * <code>repeated string realms = 1;</code>
538      *
539      * @param index The index of the element to return.
540      * @return The realms at the given index.
541      */
getRealms(int index)542     public java.lang.String getRealms(int index) {
543       return realms_.get(index);
544     }
545     /**
546      *
547      *
548      * <pre>
549      * List of realms to match.
550      * </pre>
551      *
552      * <code>repeated string realms = 1;</code>
553      *
554      * @param index The index of the value to return.
555      * @return The bytes of the realms at the given index.
556      */
getRealmsBytes(int index)557     public com.google.protobuf.ByteString getRealmsBytes(int index) {
558       return realms_.getByteString(index);
559     }
560     /**
561      *
562      *
563      * <pre>
564      * List of realms to match.
565      * </pre>
566      *
567      * <code>repeated string realms = 1;</code>
568      *
569      * @param index The index to set the value at.
570      * @param value The realms to set.
571      * @return This builder for chaining.
572      */
setRealms(int index, java.lang.String value)573     public Builder setRealms(int index, java.lang.String value) {
574       if (value == null) {
575         throw new NullPointerException();
576       }
577       ensureRealmsIsMutable();
578       realms_.set(index, value);
579       onChanged();
580       return this;
581     }
582     /**
583      *
584      *
585      * <pre>
586      * List of realms to match.
587      * </pre>
588      *
589      * <code>repeated string realms = 1;</code>
590      *
591      * @param value The realms to add.
592      * @return This builder for chaining.
593      */
addRealms(java.lang.String value)594     public Builder addRealms(java.lang.String value) {
595       if (value == null) {
596         throw new NullPointerException();
597       }
598       ensureRealmsIsMutable();
599       realms_.add(value);
600       onChanged();
601       return this;
602     }
603     /**
604      *
605      *
606      * <pre>
607      * List of realms to match.
608      * </pre>
609      *
610      * <code>repeated string realms = 1;</code>
611      *
612      * @param values The realms to add.
613      * @return This builder for chaining.
614      */
addAllRealms(java.lang.Iterable<java.lang.String> values)615     public Builder addAllRealms(java.lang.Iterable<java.lang.String> values) {
616       ensureRealmsIsMutable();
617       com.google.protobuf.AbstractMessageLite.Builder.addAll(values, realms_);
618       onChanged();
619       return this;
620     }
621     /**
622      *
623      *
624      * <pre>
625      * List of realms to match.
626      * </pre>
627      *
628      * <code>repeated string realms = 1;</code>
629      *
630      * @return This builder for chaining.
631      */
clearRealms()632     public Builder clearRealms() {
633       realms_ = com.google.protobuf.LazyStringArrayList.EMPTY;
634       bitField0_ = (bitField0_ & ~0x00000001);
635       onChanged();
636       return this;
637     }
638     /**
639      *
640      *
641      * <pre>
642      * List of realms to match.
643      * </pre>
644      *
645      * <code>repeated string realms = 1;</code>
646      *
647      * @param value The bytes of the realms to add.
648      * @return This builder for chaining.
649      */
addRealmsBytes(com.google.protobuf.ByteString value)650     public Builder addRealmsBytes(com.google.protobuf.ByteString value) {
651       if (value == null) {
652         throw new NullPointerException();
653       }
654       checkByteStringIsUtf8(value);
655       ensureRealmsIsMutable();
656       realms_.add(value);
657       onChanged();
658       return this;
659     }
660 
661     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)662     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
663       return super.setUnknownFields(unknownFields);
664     }
665 
666     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)667     public final Builder mergeUnknownFields(
668         final com.google.protobuf.UnknownFieldSet unknownFields) {
669       return super.mergeUnknownFields(unknownFields);
670     }
671 
672     // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1.RealmSelector)
673   }
674 
675   // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1.RealmSelector)
676   private static final com.google.cloud.gaming.v1.RealmSelector DEFAULT_INSTANCE;
677 
678   static {
679     DEFAULT_INSTANCE = new com.google.cloud.gaming.v1.RealmSelector();
680   }
681 
getDefaultInstance()682   public static com.google.cloud.gaming.v1.RealmSelector getDefaultInstance() {
683     return DEFAULT_INSTANCE;
684   }
685 
686   private static final com.google.protobuf.Parser<RealmSelector> PARSER =
687       new com.google.protobuf.AbstractParser<RealmSelector>() {
688         @java.lang.Override
689         public RealmSelector parsePartialFrom(
690             com.google.protobuf.CodedInputStream input,
691             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
692             throws com.google.protobuf.InvalidProtocolBufferException {
693           Builder builder = newBuilder();
694           try {
695             builder.mergeFrom(input, extensionRegistry);
696           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
697             throw e.setUnfinishedMessage(builder.buildPartial());
698           } catch (com.google.protobuf.UninitializedMessageException e) {
699             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
700           } catch (java.io.IOException e) {
701             throw new com.google.protobuf.InvalidProtocolBufferException(e)
702                 .setUnfinishedMessage(builder.buildPartial());
703           }
704           return builder.buildPartial();
705         }
706       };
707 
parser()708   public static com.google.protobuf.Parser<RealmSelector> parser() {
709     return PARSER;
710   }
711 
712   @java.lang.Override
getParserForType()713   public com.google.protobuf.Parser<RealmSelector> getParserForType() {
714     return PARSER;
715   }
716 
717   @java.lang.Override
getDefaultInstanceForType()718   public com.google.cloud.gaming.v1.RealmSelector getDefaultInstanceForType() {
719     return DEFAULT_INSTANCE;
720   }
721 }
722