• 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/game_server_configs.proto
18 
19 package com.google.cloud.gaming.v1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * A game server config resource.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.gaming.v1.GameServerConfig}
29  */
30 public final class GameServerConfig extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.gaming.v1.GameServerConfig)
33     GameServerConfigOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use GameServerConfig.newBuilder() to construct.
GameServerConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private GameServerConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
GameServerConfig()40   private GameServerConfig() {
41     name_ = "";
42     fleetConfigs_ = java.util.Collections.emptyList();
43     scalingConfigs_ = java.util.Collections.emptyList();
44     description_ = "";
45   }
46 
47   @java.lang.Override
48   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)49   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
50     return new GameServerConfig();
51   }
52 
53   @java.lang.Override
getUnknownFields()54   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
55     return this.unknownFields;
56   }
57 
getDescriptor()58   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
59     return com.google.cloud.gaming.v1.GameServerConfigs
60         .internal_static_google_cloud_gaming_v1_GameServerConfig_descriptor;
61   }
62 
63   @SuppressWarnings({"rawtypes"})
64   @java.lang.Override
internalGetMapField(int number)65   protected com.google.protobuf.MapField internalGetMapField(int number) {
66     switch (number) {
67       case 4:
68         return internalGetLabels();
69       default:
70         throw new RuntimeException("Invalid map field number: " + number);
71     }
72   }
73 
74   @java.lang.Override
75   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()76       internalGetFieldAccessorTable() {
77     return com.google.cloud.gaming.v1.GameServerConfigs
78         .internal_static_google_cloud_gaming_v1_GameServerConfig_fieldAccessorTable
79         .ensureFieldAccessorsInitialized(
80             com.google.cloud.gaming.v1.GameServerConfig.class,
81             com.google.cloud.gaming.v1.GameServerConfig.Builder.class);
82   }
83 
84   public static final int NAME_FIELD_NUMBER = 1;
85 
86   @SuppressWarnings("serial")
87   private volatile java.lang.Object name_ = "";
88   /**
89    *
90    *
91    * <pre>
92    * The resource name of the game server config, in the following form:
93    * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
94    * For example,
95    * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
96    * </pre>
97    *
98    * <code>string name = 1;</code>
99    *
100    * @return The name.
101    */
102   @java.lang.Override
getName()103   public java.lang.String getName() {
104     java.lang.Object ref = name_;
105     if (ref instanceof java.lang.String) {
106       return (java.lang.String) ref;
107     } else {
108       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
109       java.lang.String s = bs.toStringUtf8();
110       name_ = s;
111       return s;
112     }
113   }
114   /**
115    *
116    *
117    * <pre>
118    * The resource name of the game server config, in the following form:
119    * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
120    * For example,
121    * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
122    * </pre>
123    *
124    * <code>string name = 1;</code>
125    *
126    * @return The bytes for name.
127    */
128   @java.lang.Override
getNameBytes()129   public com.google.protobuf.ByteString getNameBytes() {
130     java.lang.Object ref = name_;
131     if (ref instanceof java.lang.String) {
132       com.google.protobuf.ByteString b =
133           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
134       name_ = b;
135       return b;
136     } else {
137       return (com.google.protobuf.ByteString) ref;
138     }
139   }
140 
141   public static final int CREATE_TIME_FIELD_NUMBER = 2;
142   private com.google.protobuf.Timestamp createTime_;
143   /**
144    *
145    *
146    * <pre>
147    * Output only. The creation time.
148    * </pre>
149    *
150    * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
151    * </code>
152    *
153    * @return Whether the createTime field is set.
154    */
155   @java.lang.Override
hasCreateTime()156   public boolean hasCreateTime() {
157     return createTime_ != null;
158   }
159   /**
160    *
161    *
162    * <pre>
163    * Output only. The creation time.
164    * </pre>
165    *
166    * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
167    * </code>
168    *
169    * @return The createTime.
170    */
171   @java.lang.Override
getCreateTime()172   public com.google.protobuf.Timestamp getCreateTime() {
173     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
174   }
175   /**
176    *
177    *
178    * <pre>
179    * Output only. The creation time.
180    * </pre>
181    *
182    * <code>.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
183    * </code>
184    */
185   @java.lang.Override
getCreateTimeOrBuilder()186   public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
187     return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
188   }
189 
190   public static final int UPDATE_TIME_FIELD_NUMBER = 3;
191   private com.google.protobuf.Timestamp updateTime_;
192   /**
193    *
194    *
195    * <pre>
196    * Output only. The last-modified time.
197    * </pre>
198    *
199    * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
200    * </code>
201    *
202    * @return Whether the updateTime field is set.
203    */
204   @java.lang.Override
hasUpdateTime()205   public boolean hasUpdateTime() {
206     return updateTime_ != null;
207   }
208   /**
209    *
210    *
211    * <pre>
212    * Output only. The last-modified time.
213    * </pre>
214    *
215    * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
216    * </code>
217    *
218    * @return The updateTime.
219    */
220   @java.lang.Override
getUpdateTime()221   public com.google.protobuf.Timestamp getUpdateTime() {
222     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
223   }
224   /**
225    *
226    *
227    * <pre>
228    * Output only. The last-modified time.
229    * </pre>
230    *
231    * <code>.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
232    * </code>
233    */
234   @java.lang.Override
getUpdateTimeOrBuilder()235   public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
236     return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
237   }
238 
239   public static final int LABELS_FIELD_NUMBER = 4;
240 
241   private static final class LabelsDefaultEntryHolder {
242     static final com.google.protobuf.MapEntry<java.lang.String, java.lang.String> defaultEntry =
243         com.google.protobuf.MapEntry.<java.lang.String, java.lang.String>newDefaultInstance(
244             com.google.cloud.gaming.v1.GameServerConfigs
245                 .internal_static_google_cloud_gaming_v1_GameServerConfig_LabelsEntry_descriptor,
246             com.google.protobuf.WireFormat.FieldType.STRING,
247             "",
248             com.google.protobuf.WireFormat.FieldType.STRING,
249             "");
250   }
251 
252   @SuppressWarnings("serial")
253   private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
254 
internalGetLabels()255   private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
256     if (labels_ == null) {
257       return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
258     }
259     return labels_;
260   }
261 
getLabelsCount()262   public int getLabelsCount() {
263     return internalGetLabels().getMap().size();
264   }
265   /**
266    *
267    *
268    * <pre>
269    * The labels associated with this game server config. Each label is a
270    * key-value pair.
271    * </pre>
272    *
273    * <code>map&lt;string, string&gt; labels = 4;</code>
274    */
275   @java.lang.Override
containsLabels(java.lang.String key)276   public boolean containsLabels(java.lang.String key) {
277     if (key == null) {
278       throw new NullPointerException("map key");
279     }
280     return internalGetLabels().getMap().containsKey(key);
281   }
282   /** Use {@link #getLabelsMap()} instead. */
283   @java.lang.Override
284   @java.lang.Deprecated
getLabels()285   public java.util.Map<java.lang.String, java.lang.String> getLabels() {
286     return getLabelsMap();
287   }
288   /**
289    *
290    *
291    * <pre>
292    * The labels associated with this game server config. Each label is a
293    * key-value pair.
294    * </pre>
295    *
296    * <code>map&lt;string, string&gt; labels = 4;</code>
297    */
298   @java.lang.Override
getLabelsMap()299   public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
300     return internalGetLabels().getMap();
301   }
302   /**
303    *
304    *
305    * <pre>
306    * The labels associated with this game server config. Each label is a
307    * key-value pair.
308    * </pre>
309    *
310    * <code>map&lt;string, string&gt; labels = 4;</code>
311    */
312   @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)313   public /* nullable */ java.lang.String getLabelsOrDefault(
314       java.lang.String key,
315       /* nullable */
316       java.lang.String defaultValue) {
317     if (key == null) {
318       throw new NullPointerException("map key");
319     }
320     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
321     return map.containsKey(key) ? map.get(key) : defaultValue;
322   }
323   /**
324    *
325    *
326    * <pre>
327    * The labels associated with this game server config. Each label is a
328    * key-value pair.
329    * </pre>
330    *
331    * <code>map&lt;string, string&gt; labels = 4;</code>
332    */
333   @java.lang.Override
getLabelsOrThrow(java.lang.String key)334   public java.lang.String getLabelsOrThrow(java.lang.String key) {
335     if (key == null) {
336       throw new NullPointerException("map key");
337     }
338     java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
339     if (!map.containsKey(key)) {
340       throw new java.lang.IllegalArgumentException();
341     }
342     return map.get(key);
343   }
344 
345   public static final int FLEET_CONFIGS_FIELD_NUMBER = 5;
346 
347   @SuppressWarnings("serial")
348   private java.util.List<com.google.cloud.gaming.v1.FleetConfig> fleetConfigs_;
349   /**
350    *
351    *
352    * <pre>
353    * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
354    * is allowed.
355    * </pre>
356    *
357    * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
358    */
359   @java.lang.Override
getFleetConfigsList()360   public java.util.List<com.google.cloud.gaming.v1.FleetConfig> getFleetConfigsList() {
361     return fleetConfigs_;
362   }
363   /**
364    *
365    *
366    * <pre>
367    * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
368    * is allowed.
369    * </pre>
370    *
371    * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
372    */
373   @java.lang.Override
374   public java.util.List<? extends com.google.cloud.gaming.v1.FleetConfigOrBuilder>
getFleetConfigsOrBuilderList()375       getFleetConfigsOrBuilderList() {
376     return fleetConfigs_;
377   }
378   /**
379    *
380    *
381    * <pre>
382    * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
383    * is allowed.
384    * </pre>
385    *
386    * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
387    */
388   @java.lang.Override
getFleetConfigsCount()389   public int getFleetConfigsCount() {
390     return fleetConfigs_.size();
391   }
392   /**
393    *
394    *
395    * <pre>
396    * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
397    * is allowed.
398    * </pre>
399    *
400    * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
401    */
402   @java.lang.Override
getFleetConfigs(int index)403   public com.google.cloud.gaming.v1.FleetConfig getFleetConfigs(int index) {
404     return fleetConfigs_.get(index);
405   }
406   /**
407    *
408    *
409    * <pre>
410    * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
411    * is allowed.
412    * </pre>
413    *
414    * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
415    */
416   @java.lang.Override
getFleetConfigsOrBuilder(int index)417   public com.google.cloud.gaming.v1.FleetConfigOrBuilder getFleetConfigsOrBuilder(int index) {
418     return fleetConfigs_.get(index);
419   }
420 
421   public static final int SCALING_CONFIGS_FIELD_NUMBER = 6;
422 
423   @SuppressWarnings("serial")
424   private java.util.List<com.google.cloud.gaming.v1.ScalingConfig> scalingConfigs_;
425   /**
426    *
427    *
428    * <pre>
429    * The autoscaling settings.
430    * </pre>
431    *
432    * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
433    */
434   @java.lang.Override
getScalingConfigsList()435   public java.util.List<com.google.cloud.gaming.v1.ScalingConfig> getScalingConfigsList() {
436     return scalingConfigs_;
437   }
438   /**
439    *
440    *
441    * <pre>
442    * The autoscaling settings.
443    * </pre>
444    *
445    * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
446    */
447   @java.lang.Override
448   public java.util.List<? extends com.google.cloud.gaming.v1.ScalingConfigOrBuilder>
getScalingConfigsOrBuilderList()449       getScalingConfigsOrBuilderList() {
450     return scalingConfigs_;
451   }
452   /**
453    *
454    *
455    * <pre>
456    * The autoscaling settings.
457    * </pre>
458    *
459    * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
460    */
461   @java.lang.Override
getScalingConfigsCount()462   public int getScalingConfigsCount() {
463     return scalingConfigs_.size();
464   }
465   /**
466    *
467    *
468    * <pre>
469    * The autoscaling settings.
470    * </pre>
471    *
472    * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
473    */
474   @java.lang.Override
getScalingConfigs(int index)475   public com.google.cloud.gaming.v1.ScalingConfig getScalingConfigs(int index) {
476     return scalingConfigs_.get(index);
477   }
478   /**
479    *
480    *
481    * <pre>
482    * The autoscaling settings.
483    * </pre>
484    *
485    * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
486    */
487   @java.lang.Override
getScalingConfigsOrBuilder(int index)488   public com.google.cloud.gaming.v1.ScalingConfigOrBuilder getScalingConfigsOrBuilder(int index) {
489     return scalingConfigs_.get(index);
490   }
491 
492   public static final int DESCRIPTION_FIELD_NUMBER = 7;
493 
494   @SuppressWarnings("serial")
495   private volatile java.lang.Object description_ = "";
496   /**
497    *
498    *
499    * <pre>
500    * The description of the game server config.
501    * </pre>
502    *
503    * <code>string description = 7;</code>
504    *
505    * @return The description.
506    */
507   @java.lang.Override
getDescription()508   public java.lang.String getDescription() {
509     java.lang.Object ref = description_;
510     if (ref instanceof java.lang.String) {
511       return (java.lang.String) ref;
512     } else {
513       com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
514       java.lang.String s = bs.toStringUtf8();
515       description_ = s;
516       return s;
517     }
518   }
519   /**
520    *
521    *
522    * <pre>
523    * The description of the game server config.
524    * </pre>
525    *
526    * <code>string description = 7;</code>
527    *
528    * @return The bytes for description.
529    */
530   @java.lang.Override
getDescriptionBytes()531   public com.google.protobuf.ByteString getDescriptionBytes() {
532     java.lang.Object ref = description_;
533     if (ref instanceof java.lang.String) {
534       com.google.protobuf.ByteString b =
535           com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
536       description_ = b;
537       return b;
538     } else {
539       return (com.google.protobuf.ByteString) ref;
540     }
541   }
542 
543   private byte memoizedIsInitialized = -1;
544 
545   @java.lang.Override
isInitialized()546   public final boolean isInitialized() {
547     byte isInitialized = memoizedIsInitialized;
548     if (isInitialized == 1) return true;
549     if (isInitialized == 0) return false;
550 
551     memoizedIsInitialized = 1;
552     return true;
553   }
554 
555   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)556   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
557     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
558       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
559     }
560     if (createTime_ != null) {
561       output.writeMessage(2, getCreateTime());
562     }
563     if (updateTime_ != null) {
564       output.writeMessage(3, getUpdateTime());
565     }
566     com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
567         output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4);
568     for (int i = 0; i < fleetConfigs_.size(); i++) {
569       output.writeMessage(5, fleetConfigs_.get(i));
570     }
571     for (int i = 0; i < scalingConfigs_.size(); i++) {
572       output.writeMessage(6, scalingConfigs_.get(i));
573     }
574     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
575       com.google.protobuf.GeneratedMessageV3.writeString(output, 7, description_);
576     }
577     getUnknownFields().writeTo(output);
578   }
579 
580   @java.lang.Override
getSerializedSize()581   public int getSerializedSize() {
582     int size = memoizedSize;
583     if (size != -1) return size;
584 
585     size = 0;
586     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
587       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
588     }
589     if (createTime_ != null) {
590       size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime());
591     }
592     if (updateTime_ != null) {
593       size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime());
594     }
595     for (java.util.Map.Entry<java.lang.String, java.lang.String> entry :
596         internalGetLabels().getMap().entrySet()) {
597       com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
598           LabelsDefaultEntryHolder.defaultEntry
599               .newBuilderForType()
600               .setKey(entry.getKey())
601               .setValue(entry.getValue())
602               .build();
603       size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__);
604     }
605     for (int i = 0; i < fleetConfigs_.size(); i++) {
606       size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, fleetConfigs_.get(i));
607     }
608     for (int i = 0; i < scalingConfigs_.size(); i++) {
609       size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, scalingConfigs_.get(i));
610     }
611     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
612       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, description_);
613     }
614     size += getUnknownFields().getSerializedSize();
615     memoizedSize = size;
616     return size;
617   }
618 
619   @java.lang.Override
equals(final java.lang.Object obj)620   public boolean equals(final java.lang.Object obj) {
621     if (obj == this) {
622       return true;
623     }
624     if (!(obj instanceof com.google.cloud.gaming.v1.GameServerConfig)) {
625       return super.equals(obj);
626     }
627     com.google.cloud.gaming.v1.GameServerConfig other =
628         (com.google.cloud.gaming.v1.GameServerConfig) obj;
629 
630     if (!getName().equals(other.getName())) return false;
631     if (hasCreateTime() != other.hasCreateTime()) return false;
632     if (hasCreateTime()) {
633       if (!getCreateTime().equals(other.getCreateTime())) return false;
634     }
635     if (hasUpdateTime() != other.hasUpdateTime()) return false;
636     if (hasUpdateTime()) {
637       if (!getUpdateTime().equals(other.getUpdateTime())) return false;
638     }
639     if (!internalGetLabels().equals(other.internalGetLabels())) return false;
640     if (!getFleetConfigsList().equals(other.getFleetConfigsList())) return false;
641     if (!getScalingConfigsList().equals(other.getScalingConfigsList())) return false;
642     if (!getDescription().equals(other.getDescription())) return false;
643     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
644     return true;
645   }
646 
647   @java.lang.Override
hashCode()648   public int hashCode() {
649     if (memoizedHashCode != 0) {
650       return memoizedHashCode;
651     }
652     int hash = 41;
653     hash = (19 * hash) + getDescriptor().hashCode();
654     hash = (37 * hash) + NAME_FIELD_NUMBER;
655     hash = (53 * hash) + getName().hashCode();
656     if (hasCreateTime()) {
657       hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
658       hash = (53 * hash) + getCreateTime().hashCode();
659     }
660     if (hasUpdateTime()) {
661       hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
662       hash = (53 * hash) + getUpdateTime().hashCode();
663     }
664     if (!internalGetLabels().getMap().isEmpty()) {
665       hash = (37 * hash) + LABELS_FIELD_NUMBER;
666       hash = (53 * hash) + internalGetLabels().hashCode();
667     }
668     if (getFleetConfigsCount() > 0) {
669       hash = (37 * hash) + FLEET_CONFIGS_FIELD_NUMBER;
670       hash = (53 * hash) + getFleetConfigsList().hashCode();
671     }
672     if (getScalingConfigsCount() > 0) {
673       hash = (37 * hash) + SCALING_CONFIGS_FIELD_NUMBER;
674       hash = (53 * hash) + getScalingConfigsList().hashCode();
675     }
676     hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
677     hash = (53 * hash) + getDescription().hashCode();
678     hash = (29 * hash) + getUnknownFields().hashCode();
679     memoizedHashCode = hash;
680     return hash;
681   }
682 
parseFrom(java.nio.ByteBuffer data)683   public static com.google.cloud.gaming.v1.GameServerConfig parseFrom(java.nio.ByteBuffer data)
684       throws com.google.protobuf.InvalidProtocolBufferException {
685     return PARSER.parseFrom(data);
686   }
687 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)688   public static com.google.cloud.gaming.v1.GameServerConfig parseFrom(
689       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
690       throws com.google.protobuf.InvalidProtocolBufferException {
691     return PARSER.parseFrom(data, extensionRegistry);
692   }
693 
parseFrom( com.google.protobuf.ByteString data)694   public static com.google.cloud.gaming.v1.GameServerConfig parseFrom(
695       com.google.protobuf.ByteString data)
696       throws com.google.protobuf.InvalidProtocolBufferException {
697     return PARSER.parseFrom(data);
698   }
699 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)700   public static com.google.cloud.gaming.v1.GameServerConfig parseFrom(
701       com.google.protobuf.ByteString data,
702       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
703       throws com.google.protobuf.InvalidProtocolBufferException {
704     return PARSER.parseFrom(data, extensionRegistry);
705   }
706 
parseFrom(byte[] data)707   public static com.google.cloud.gaming.v1.GameServerConfig parseFrom(byte[] data)
708       throws com.google.protobuf.InvalidProtocolBufferException {
709     return PARSER.parseFrom(data);
710   }
711 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)712   public static com.google.cloud.gaming.v1.GameServerConfig parseFrom(
713       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
714       throws com.google.protobuf.InvalidProtocolBufferException {
715     return PARSER.parseFrom(data, extensionRegistry);
716   }
717 
parseFrom(java.io.InputStream input)718   public static com.google.cloud.gaming.v1.GameServerConfig parseFrom(java.io.InputStream input)
719       throws java.io.IOException {
720     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
721   }
722 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)723   public static com.google.cloud.gaming.v1.GameServerConfig parseFrom(
724       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
725       throws java.io.IOException {
726     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
727         PARSER, input, extensionRegistry);
728   }
729 
parseDelimitedFrom( java.io.InputStream input)730   public static com.google.cloud.gaming.v1.GameServerConfig parseDelimitedFrom(
731       java.io.InputStream input) throws java.io.IOException {
732     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
733   }
734 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)735   public static com.google.cloud.gaming.v1.GameServerConfig parseDelimitedFrom(
736       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
737       throws java.io.IOException {
738     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
739         PARSER, input, extensionRegistry);
740   }
741 
parseFrom( com.google.protobuf.CodedInputStream input)742   public static com.google.cloud.gaming.v1.GameServerConfig parseFrom(
743       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
744     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
745   }
746 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)747   public static com.google.cloud.gaming.v1.GameServerConfig parseFrom(
748       com.google.protobuf.CodedInputStream input,
749       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
750       throws java.io.IOException {
751     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
752         PARSER, input, extensionRegistry);
753   }
754 
755   @java.lang.Override
newBuilderForType()756   public Builder newBuilderForType() {
757     return newBuilder();
758   }
759 
newBuilder()760   public static Builder newBuilder() {
761     return DEFAULT_INSTANCE.toBuilder();
762   }
763 
newBuilder(com.google.cloud.gaming.v1.GameServerConfig prototype)764   public static Builder newBuilder(com.google.cloud.gaming.v1.GameServerConfig prototype) {
765     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
766   }
767 
768   @java.lang.Override
toBuilder()769   public Builder toBuilder() {
770     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
771   }
772 
773   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)774   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
775     Builder builder = new Builder(parent);
776     return builder;
777   }
778   /**
779    *
780    *
781    * <pre>
782    * A game server config resource.
783    * </pre>
784    *
785    * Protobuf type {@code google.cloud.gaming.v1.GameServerConfig}
786    */
787   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
788       implements
789       // @@protoc_insertion_point(builder_implements:google.cloud.gaming.v1.GameServerConfig)
790       com.google.cloud.gaming.v1.GameServerConfigOrBuilder {
getDescriptor()791     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
792       return com.google.cloud.gaming.v1.GameServerConfigs
793           .internal_static_google_cloud_gaming_v1_GameServerConfig_descriptor;
794     }
795 
796     @SuppressWarnings({"rawtypes"})
internalGetMapField(int number)797     protected com.google.protobuf.MapField internalGetMapField(int number) {
798       switch (number) {
799         case 4:
800           return internalGetLabels();
801         default:
802           throw new RuntimeException("Invalid map field number: " + number);
803       }
804     }
805 
806     @SuppressWarnings({"rawtypes"})
internalGetMutableMapField(int number)807     protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
808       switch (number) {
809         case 4:
810           return internalGetMutableLabels();
811         default:
812           throw new RuntimeException("Invalid map field number: " + number);
813       }
814     }
815 
816     @java.lang.Override
817     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()818         internalGetFieldAccessorTable() {
819       return com.google.cloud.gaming.v1.GameServerConfigs
820           .internal_static_google_cloud_gaming_v1_GameServerConfig_fieldAccessorTable
821           .ensureFieldAccessorsInitialized(
822               com.google.cloud.gaming.v1.GameServerConfig.class,
823               com.google.cloud.gaming.v1.GameServerConfig.Builder.class);
824     }
825 
826     // Construct using com.google.cloud.gaming.v1.GameServerConfig.newBuilder()
Builder()827     private Builder() {}
828 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)829     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
830       super(parent);
831     }
832 
833     @java.lang.Override
clear()834     public Builder clear() {
835       super.clear();
836       bitField0_ = 0;
837       name_ = "";
838       createTime_ = null;
839       if (createTimeBuilder_ != null) {
840         createTimeBuilder_.dispose();
841         createTimeBuilder_ = null;
842       }
843       updateTime_ = null;
844       if (updateTimeBuilder_ != null) {
845         updateTimeBuilder_.dispose();
846         updateTimeBuilder_ = null;
847       }
848       internalGetMutableLabels().clear();
849       if (fleetConfigsBuilder_ == null) {
850         fleetConfigs_ = java.util.Collections.emptyList();
851       } else {
852         fleetConfigs_ = null;
853         fleetConfigsBuilder_.clear();
854       }
855       bitField0_ = (bitField0_ & ~0x00000010);
856       if (scalingConfigsBuilder_ == null) {
857         scalingConfigs_ = java.util.Collections.emptyList();
858       } else {
859         scalingConfigs_ = null;
860         scalingConfigsBuilder_.clear();
861       }
862       bitField0_ = (bitField0_ & ~0x00000020);
863       description_ = "";
864       return this;
865     }
866 
867     @java.lang.Override
getDescriptorForType()868     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
869       return com.google.cloud.gaming.v1.GameServerConfigs
870           .internal_static_google_cloud_gaming_v1_GameServerConfig_descriptor;
871     }
872 
873     @java.lang.Override
getDefaultInstanceForType()874     public com.google.cloud.gaming.v1.GameServerConfig getDefaultInstanceForType() {
875       return com.google.cloud.gaming.v1.GameServerConfig.getDefaultInstance();
876     }
877 
878     @java.lang.Override
build()879     public com.google.cloud.gaming.v1.GameServerConfig build() {
880       com.google.cloud.gaming.v1.GameServerConfig result = buildPartial();
881       if (!result.isInitialized()) {
882         throw newUninitializedMessageException(result);
883       }
884       return result;
885     }
886 
887     @java.lang.Override
buildPartial()888     public com.google.cloud.gaming.v1.GameServerConfig buildPartial() {
889       com.google.cloud.gaming.v1.GameServerConfig result =
890           new com.google.cloud.gaming.v1.GameServerConfig(this);
891       buildPartialRepeatedFields(result);
892       if (bitField0_ != 0) {
893         buildPartial0(result);
894       }
895       onBuilt();
896       return result;
897     }
898 
buildPartialRepeatedFields(com.google.cloud.gaming.v1.GameServerConfig result)899     private void buildPartialRepeatedFields(com.google.cloud.gaming.v1.GameServerConfig result) {
900       if (fleetConfigsBuilder_ == null) {
901         if (((bitField0_ & 0x00000010) != 0)) {
902           fleetConfigs_ = java.util.Collections.unmodifiableList(fleetConfigs_);
903           bitField0_ = (bitField0_ & ~0x00000010);
904         }
905         result.fleetConfigs_ = fleetConfigs_;
906       } else {
907         result.fleetConfigs_ = fleetConfigsBuilder_.build();
908       }
909       if (scalingConfigsBuilder_ == null) {
910         if (((bitField0_ & 0x00000020) != 0)) {
911           scalingConfigs_ = java.util.Collections.unmodifiableList(scalingConfigs_);
912           bitField0_ = (bitField0_ & ~0x00000020);
913         }
914         result.scalingConfigs_ = scalingConfigs_;
915       } else {
916         result.scalingConfigs_ = scalingConfigsBuilder_.build();
917       }
918     }
919 
buildPartial0(com.google.cloud.gaming.v1.GameServerConfig result)920     private void buildPartial0(com.google.cloud.gaming.v1.GameServerConfig result) {
921       int from_bitField0_ = bitField0_;
922       if (((from_bitField0_ & 0x00000001) != 0)) {
923         result.name_ = name_;
924       }
925       if (((from_bitField0_ & 0x00000002) != 0)) {
926         result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
927       }
928       if (((from_bitField0_ & 0x00000004) != 0)) {
929         result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build();
930       }
931       if (((from_bitField0_ & 0x00000008) != 0)) {
932         result.labels_ = internalGetLabels();
933         result.labels_.makeImmutable();
934       }
935       if (((from_bitField0_ & 0x00000040) != 0)) {
936         result.description_ = description_;
937       }
938     }
939 
940     @java.lang.Override
clone()941     public Builder clone() {
942       return super.clone();
943     }
944 
945     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)946     public Builder setField(
947         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
948       return super.setField(field, value);
949     }
950 
951     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)952     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
953       return super.clearField(field);
954     }
955 
956     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)957     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
958       return super.clearOneof(oneof);
959     }
960 
961     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)962     public Builder setRepeatedField(
963         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
964       return super.setRepeatedField(field, index, value);
965     }
966 
967     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)968     public Builder addRepeatedField(
969         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
970       return super.addRepeatedField(field, value);
971     }
972 
973     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)974     public Builder mergeFrom(com.google.protobuf.Message other) {
975       if (other instanceof com.google.cloud.gaming.v1.GameServerConfig) {
976         return mergeFrom((com.google.cloud.gaming.v1.GameServerConfig) other);
977       } else {
978         super.mergeFrom(other);
979         return this;
980       }
981     }
982 
mergeFrom(com.google.cloud.gaming.v1.GameServerConfig other)983     public Builder mergeFrom(com.google.cloud.gaming.v1.GameServerConfig other) {
984       if (other == com.google.cloud.gaming.v1.GameServerConfig.getDefaultInstance()) return this;
985       if (!other.getName().isEmpty()) {
986         name_ = other.name_;
987         bitField0_ |= 0x00000001;
988         onChanged();
989       }
990       if (other.hasCreateTime()) {
991         mergeCreateTime(other.getCreateTime());
992       }
993       if (other.hasUpdateTime()) {
994         mergeUpdateTime(other.getUpdateTime());
995       }
996       internalGetMutableLabels().mergeFrom(other.internalGetLabels());
997       bitField0_ |= 0x00000008;
998       if (fleetConfigsBuilder_ == null) {
999         if (!other.fleetConfigs_.isEmpty()) {
1000           if (fleetConfigs_.isEmpty()) {
1001             fleetConfigs_ = other.fleetConfigs_;
1002             bitField0_ = (bitField0_ & ~0x00000010);
1003           } else {
1004             ensureFleetConfigsIsMutable();
1005             fleetConfigs_.addAll(other.fleetConfigs_);
1006           }
1007           onChanged();
1008         }
1009       } else {
1010         if (!other.fleetConfigs_.isEmpty()) {
1011           if (fleetConfigsBuilder_.isEmpty()) {
1012             fleetConfigsBuilder_.dispose();
1013             fleetConfigsBuilder_ = null;
1014             fleetConfigs_ = other.fleetConfigs_;
1015             bitField0_ = (bitField0_ & ~0x00000010);
1016             fleetConfigsBuilder_ =
1017                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1018                     ? getFleetConfigsFieldBuilder()
1019                     : null;
1020           } else {
1021             fleetConfigsBuilder_.addAllMessages(other.fleetConfigs_);
1022           }
1023         }
1024       }
1025       if (scalingConfigsBuilder_ == null) {
1026         if (!other.scalingConfigs_.isEmpty()) {
1027           if (scalingConfigs_.isEmpty()) {
1028             scalingConfigs_ = other.scalingConfigs_;
1029             bitField0_ = (bitField0_ & ~0x00000020);
1030           } else {
1031             ensureScalingConfigsIsMutable();
1032             scalingConfigs_.addAll(other.scalingConfigs_);
1033           }
1034           onChanged();
1035         }
1036       } else {
1037         if (!other.scalingConfigs_.isEmpty()) {
1038           if (scalingConfigsBuilder_.isEmpty()) {
1039             scalingConfigsBuilder_.dispose();
1040             scalingConfigsBuilder_ = null;
1041             scalingConfigs_ = other.scalingConfigs_;
1042             bitField0_ = (bitField0_ & ~0x00000020);
1043             scalingConfigsBuilder_ =
1044                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
1045                     ? getScalingConfigsFieldBuilder()
1046                     : null;
1047           } else {
1048             scalingConfigsBuilder_.addAllMessages(other.scalingConfigs_);
1049           }
1050         }
1051       }
1052       if (!other.getDescription().isEmpty()) {
1053         description_ = other.description_;
1054         bitField0_ |= 0x00000040;
1055         onChanged();
1056       }
1057       this.mergeUnknownFields(other.getUnknownFields());
1058       onChanged();
1059       return this;
1060     }
1061 
1062     @java.lang.Override
isInitialized()1063     public final boolean isInitialized() {
1064       return true;
1065     }
1066 
1067     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1068     public Builder mergeFrom(
1069         com.google.protobuf.CodedInputStream input,
1070         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1071         throws java.io.IOException {
1072       if (extensionRegistry == null) {
1073         throw new java.lang.NullPointerException();
1074       }
1075       try {
1076         boolean done = false;
1077         while (!done) {
1078           int tag = input.readTag();
1079           switch (tag) {
1080             case 0:
1081               done = true;
1082               break;
1083             case 10:
1084               {
1085                 name_ = input.readStringRequireUtf8();
1086                 bitField0_ |= 0x00000001;
1087                 break;
1088               } // case 10
1089             case 18:
1090               {
1091                 input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
1092                 bitField0_ |= 0x00000002;
1093                 break;
1094               } // case 18
1095             case 26:
1096               {
1097                 input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry);
1098                 bitField0_ |= 0x00000004;
1099                 break;
1100               } // case 26
1101             case 34:
1102               {
1103                 com.google.protobuf.MapEntry<java.lang.String, java.lang.String> labels__ =
1104                     input.readMessage(
1105                         LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
1106                         extensionRegistry);
1107                 internalGetMutableLabels()
1108                     .getMutableMap()
1109                     .put(labels__.getKey(), labels__.getValue());
1110                 bitField0_ |= 0x00000008;
1111                 break;
1112               } // case 34
1113             case 42:
1114               {
1115                 com.google.cloud.gaming.v1.FleetConfig m =
1116                     input.readMessage(
1117                         com.google.cloud.gaming.v1.FleetConfig.parser(), extensionRegistry);
1118                 if (fleetConfigsBuilder_ == null) {
1119                   ensureFleetConfigsIsMutable();
1120                   fleetConfigs_.add(m);
1121                 } else {
1122                   fleetConfigsBuilder_.addMessage(m);
1123                 }
1124                 break;
1125               } // case 42
1126             case 50:
1127               {
1128                 com.google.cloud.gaming.v1.ScalingConfig m =
1129                     input.readMessage(
1130                         com.google.cloud.gaming.v1.ScalingConfig.parser(), extensionRegistry);
1131                 if (scalingConfigsBuilder_ == null) {
1132                   ensureScalingConfigsIsMutable();
1133                   scalingConfigs_.add(m);
1134                 } else {
1135                   scalingConfigsBuilder_.addMessage(m);
1136                 }
1137                 break;
1138               } // case 50
1139             case 58:
1140               {
1141                 description_ = input.readStringRequireUtf8();
1142                 bitField0_ |= 0x00000040;
1143                 break;
1144               } // case 58
1145             default:
1146               {
1147                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1148                   done = true; // was an endgroup tag
1149                 }
1150                 break;
1151               } // default:
1152           } // switch (tag)
1153         } // while (!done)
1154       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1155         throw e.unwrapIOException();
1156       } finally {
1157         onChanged();
1158       } // finally
1159       return this;
1160     }
1161 
1162     private int bitField0_;
1163 
1164     private java.lang.Object name_ = "";
1165     /**
1166      *
1167      *
1168      * <pre>
1169      * The resource name of the game server config, in the following form:
1170      * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
1171      * For example,
1172      * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
1173      * </pre>
1174      *
1175      * <code>string name = 1;</code>
1176      *
1177      * @return The name.
1178      */
getName()1179     public java.lang.String getName() {
1180       java.lang.Object ref = name_;
1181       if (!(ref instanceof java.lang.String)) {
1182         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1183         java.lang.String s = bs.toStringUtf8();
1184         name_ = s;
1185         return s;
1186       } else {
1187         return (java.lang.String) ref;
1188       }
1189     }
1190     /**
1191      *
1192      *
1193      * <pre>
1194      * The resource name of the game server config, in the following form:
1195      * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
1196      * For example,
1197      * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
1198      * </pre>
1199      *
1200      * <code>string name = 1;</code>
1201      *
1202      * @return The bytes for name.
1203      */
getNameBytes()1204     public com.google.protobuf.ByteString getNameBytes() {
1205       java.lang.Object ref = name_;
1206       if (ref instanceof String) {
1207         com.google.protobuf.ByteString b =
1208             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1209         name_ = b;
1210         return b;
1211       } else {
1212         return (com.google.protobuf.ByteString) ref;
1213       }
1214     }
1215     /**
1216      *
1217      *
1218      * <pre>
1219      * The resource name of the game server config, in the following form:
1220      * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
1221      * For example,
1222      * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
1223      * </pre>
1224      *
1225      * <code>string name = 1;</code>
1226      *
1227      * @param value The name to set.
1228      * @return This builder for chaining.
1229      */
setName(java.lang.String value)1230     public Builder setName(java.lang.String value) {
1231       if (value == null) {
1232         throw new NullPointerException();
1233       }
1234       name_ = value;
1235       bitField0_ |= 0x00000001;
1236       onChanged();
1237       return this;
1238     }
1239     /**
1240      *
1241      *
1242      * <pre>
1243      * The resource name of the game server config, in the following form:
1244      * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
1245      * For example,
1246      * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
1247      * </pre>
1248      *
1249      * <code>string name = 1;</code>
1250      *
1251      * @return This builder for chaining.
1252      */
clearName()1253     public Builder clearName() {
1254       name_ = getDefaultInstance().getName();
1255       bitField0_ = (bitField0_ & ~0x00000001);
1256       onChanged();
1257       return this;
1258     }
1259     /**
1260      *
1261      *
1262      * <pre>
1263      * The resource name of the game server config, in the following form:
1264      * `projects/{project}/locations/{location}/gameServerDeployments/{deployment}/configs/{config}`.
1265      * For example,
1266      * `projects/my-project/locations/global/gameServerDeployments/my-game/configs/my-config`.
1267      * </pre>
1268      *
1269      * <code>string name = 1;</code>
1270      *
1271      * @param value The bytes for name to set.
1272      * @return This builder for chaining.
1273      */
setNameBytes(com.google.protobuf.ByteString value)1274     public Builder setNameBytes(com.google.protobuf.ByteString value) {
1275       if (value == null) {
1276         throw new NullPointerException();
1277       }
1278       checkByteStringIsUtf8(value);
1279       name_ = value;
1280       bitField0_ |= 0x00000001;
1281       onChanged();
1282       return this;
1283     }
1284 
1285     private com.google.protobuf.Timestamp createTime_;
1286     private com.google.protobuf.SingleFieldBuilderV3<
1287             com.google.protobuf.Timestamp,
1288             com.google.protobuf.Timestamp.Builder,
1289             com.google.protobuf.TimestampOrBuilder>
1290         createTimeBuilder_;
1291     /**
1292      *
1293      *
1294      * <pre>
1295      * Output only. The creation time.
1296      * </pre>
1297      *
1298      * <code>
1299      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1300      * </code>
1301      *
1302      * @return Whether the createTime field is set.
1303      */
hasCreateTime()1304     public boolean hasCreateTime() {
1305       return ((bitField0_ & 0x00000002) != 0);
1306     }
1307     /**
1308      *
1309      *
1310      * <pre>
1311      * Output only. The creation time.
1312      * </pre>
1313      *
1314      * <code>
1315      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1316      * </code>
1317      *
1318      * @return The createTime.
1319      */
getCreateTime()1320     public com.google.protobuf.Timestamp getCreateTime() {
1321       if (createTimeBuilder_ == null) {
1322         return createTime_ == null
1323             ? com.google.protobuf.Timestamp.getDefaultInstance()
1324             : createTime_;
1325       } else {
1326         return createTimeBuilder_.getMessage();
1327       }
1328     }
1329     /**
1330      *
1331      *
1332      * <pre>
1333      * Output only. The creation time.
1334      * </pre>
1335      *
1336      * <code>
1337      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1338      * </code>
1339      */
setCreateTime(com.google.protobuf.Timestamp value)1340     public Builder setCreateTime(com.google.protobuf.Timestamp value) {
1341       if (createTimeBuilder_ == null) {
1342         if (value == null) {
1343           throw new NullPointerException();
1344         }
1345         createTime_ = value;
1346       } else {
1347         createTimeBuilder_.setMessage(value);
1348       }
1349       bitField0_ |= 0x00000002;
1350       onChanged();
1351       return this;
1352     }
1353     /**
1354      *
1355      *
1356      * <pre>
1357      * Output only. The creation time.
1358      * </pre>
1359      *
1360      * <code>
1361      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1362      * </code>
1363      */
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)1364     public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
1365       if (createTimeBuilder_ == null) {
1366         createTime_ = builderForValue.build();
1367       } else {
1368         createTimeBuilder_.setMessage(builderForValue.build());
1369       }
1370       bitField0_ |= 0x00000002;
1371       onChanged();
1372       return this;
1373     }
1374     /**
1375      *
1376      *
1377      * <pre>
1378      * Output only. The creation time.
1379      * </pre>
1380      *
1381      * <code>
1382      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1383      * </code>
1384      */
mergeCreateTime(com.google.protobuf.Timestamp value)1385     public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
1386       if (createTimeBuilder_ == null) {
1387         if (((bitField0_ & 0x00000002) != 0)
1388             && createTime_ != null
1389             && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1390           getCreateTimeBuilder().mergeFrom(value);
1391         } else {
1392           createTime_ = value;
1393         }
1394       } else {
1395         createTimeBuilder_.mergeFrom(value);
1396       }
1397       bitField0_ |= 0x00000002;
1398       onChanged();
1399       return this;
1400     }
1401     /**
1402      *
1403      *
1404      * <pre>
1405      * Output only. The creation time.
1406      * </pre>
1407      *
1408      * <code>
1409      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1410      * </code>
1411      */
clearCreateTime()1412     public Builder clearCreateTime() {
1413       bitField0_ = (bitField0_ & ~0x00000002);
1414       createTime_ = null;
1415       if (createTimeBuilder_ != null) {
1416         createTimeBuilder_.dispose();
1417         createTimeBuilder_ = null;
1418       }
1419       onChanged();
1420       return this;
1421     }
1422     /**
1423      *
1424      *
1425      * <pre>
1426      * Output only. The creation time.
1427      * </pre>
1428      *
1429      * <code>
1430      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1431      * </code>
1432      */
getCreateTimeBuilder()1433     public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
1434       bitField0_ |= 0x00000002;
1435       onChanged();
1436       return getCreateTimeFieldBuilder().getBuilder();
1437     }
1438     /**
1439      *
1440      *
1441      * <pre>
1442      * Output only. The creation time.
1443      * </pre>
1444      *
1445      * <code>
1446      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1447      * </code>
1448      */
getCreateTimeOrBuilder()1449     public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
1450       if (createTimeBuilder_ != null) {
1451         return createTimeBuilder_.getMessageOrBuilder();
1452       } else {
1453         return createTime_ == null
1454             ? com.google.protobuf.Timestamp.getDefaultInstance()
1455             : createTime_;
1456       }
1457     }
1458     /**
1459      *
1460      *
1461      * <pre>
1462      * Output only. The creation time.
1463      * </pre>
1464      *
1465      * <code>
1466      * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
1467      * </code>
1468      */
1469     private com.google.protobuf.SingleFieldBuilderV3<
1470             com.google.protobuf.Timestamp,
1471             com.google.protobuf.Timestamp.Builder,
1472             com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder()1473         getCreateTimeFieldBuilder() {
1474       if (createTimeBuilder_ == null) {
1475         createTimeBuilder_ =
1476             new com.google.protobuf.SingleFieldBuilderV3<
1477                 com.google.protobuf.Timestamp,
1478                 com.google.protobuf.Timestamp.Builder,
1479                 com.google.protobuf.TimestampOrBuilder>(
1480                 getCreateTime(), getParentForChildren(), isClean());
1481         createTime_ = null;
1482       }
1483       return createTimeBuilder_;
1484     }
1485 
1486     private com.google.protobuf.Timestamp updateTime_;
1487     private com.google.protobuf.SingleFieldBuilderV3<
1488             com.google.protobuf.Timestamp,
1489             com.google.protobuf.Timestamp.Builder,
1490             com.google.protobuf.TimestampOrBuilder>
1491         updateTimeBuilder_;
1492     /**
1493      *
1494      *
1495      * <pre>
1496      * Output only. The last-modified time.
1497      * </pre>
1498      *
1499      * <code>
1500      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1501      * </code>
1502      *
1503      * @return Whether the updateTime field is set.
1504      */
hasUpdateTime()1505     public boolean hasUpdateTime() {
1506       return ((bitField0_ & 0x00000004) != 0);
1507     }
1508     /**
1509      *
1510      *
1511      * <pre>
1512      * Output only. The last-modified time.
1513      * </pre>
1514      *
1515      * <code>
1516      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1517      * </code>
1518      *
1519      * @return The updateTime.
1520      */
getUpdateTime()1521     public com.google.protobuf.Timestamp getUpdateTime() {
1522       if (updateTimeBuilder_ == null) {
1523         return updateTime_ == null
1524             ? com.google.protobuf.Timestamp.getDefaultInstance()
1525             : updateTime_;
1526       } else {
1527         return updateTimeBuilder_.getMessage();
1528       }
1529     }
1530     /**
1531      *
1532      *
1533      * <pre>
1534      * Output only. The last-modified time.
1535      * </pre>
1536      *
1537      * <code>
1538      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1539      * </code>
1540      */
setUpdateTime(com.google.protobuf.Timestamp value)1541     public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
1542       if (updateTimeBuilder_ == null) {
1543         if (value == null) {
1544           throw new NullPointerException();
1545         }
1546         updateTime_ = value;
1547       } else {
1548         updateTimeBuilder_.setMessage(value);
1549       }
1550       bitField0_ |= 0x00000004;
1551       onChanged();
1552       return this;
1553     }
1554     /**
1555      *
1556      *
1557      * <pre>
1558      * Output only. The last-modified time.
1559      * </pre>
1560      *
1561      * <code>
1562      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1563      * </code>
1564      */
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)1565     public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
1566       if (updateTimeBuilder_ == null) {
1567         updateTime_ = builderForValue.build();
1568       } else {
1569         updateTimeBuilder_.setMessage(builderForValue.build());
1570       }
1571       bitField0_ |= 0x00000004;
1572       onChanged();
1573       return this;
1574     }
1575     /**
1576      *
1577      *
1578      * <pre>
1579      * Output only. The last-modified time.
1580      * </pre>
1581      *
1582      * <code>
1583      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1584      * </code>
1585      */
mergeUpdateTime(com.google.protobuf.Timestamp value)1586     public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
1587       if (updateTimeBuilder_ == null) {
1588         if (((bitField0_ & 0x00000004) != 0)
1589             && updateTime_ != null
1590             && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
1591           getUpdateTimeBuilder().mergeFrom(value);
1592         } else {
1593           updateTime_ = value;
1594         }
1595       } else {
1596         updateTimeBuilder_.mergeFrom(value);
1597       }
1598       bitField0_ |= 0x00000004;
1599       onChanged();
1600       return this;
1601     }
1602     /**
1603      *
1604      *
1605      * <pre>
1606      * Output only. The last-modified time.
1607      * </pre>
1608      *
1609      * <code>
1610      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1611      * </code>
1612      */
clearUpdateTime()1613     public Builder clearUpdateTime() {
1614       bitField0_ = (bitField0_ & ~0x00000004);
1615       updateTime_ = null;
1616       if (updateTimeBuilder_ != null) {
1617         updateTimeBuilder_.dispose();
1618         updateTimeBuilder_ = null;
1619       }
1620       onChanged();
1621       return this;
1622     }
1623     /**
1624      *
1625      *
1626      * <pre>
1627      * Output only. The last-modified time.
1628      * </pre>
1629      *
1630      * <code>
1631      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1632      * </code>
1633      */
getUpdateTimeBuilder()1634     public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
1635       bitField0_ |= 0x00000004;
1636       onChanged();
1637       return getUpdateTimeFieldBuilder().getBuilder();
1638     }
1639     /**
1640      *
1641      *
1642      * <pre>
1643      * Output only. The last-modified time.
1644      * </pre>
1645      *
1646      * <code>
1647      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1648      * </code>
1649      */
getUpdateTimeOrBuilder()1650     public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
1651       if (updateTimeBuilder_ != null) {
1652         return updateTimeBuilder_.getMessageOrBuilder();
1653       } else {
1654         return updateTime_ == null
1655             ? com.google.protobuf.Timestamp.getDefaultInstance()
1656             : updateTime_;
1657       }
1658     }
1659     /**
1660      *
1661      *
1662      * <pre>
1663      * Output only. The last-modified time.
1664      * </pre>
1665      *
1666      * <code>
1667      * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
1668      * </code>
1669      */
1670     private com.google.protobuf.SingleFieldBuilderV3<
1671             com.google.protobuf.Timestamp,
1672             com.google.protobuf.Timestamp.Builder,
1673             com.google.protobuf.TimestampOrBuilder>
getUpdateTimeFieldBuilder()1674         getUpdateTimeFieldBuilder() {
1675       if (updateTimeBuilder_ == null) {
1676         updateTimeBuilder_ =
1677             new com.google.protobuf.SingleFieldBuilderV3<
1678                 com.google.protobuf.Timestamp,
1679                 com.google.protobuf.Timestamp.Builder,
1680                 com.google.protobuf.TimestampOrBuilder>(
1681                 getUpdateTime(), getParentForChildren(), isClean());
1682         updateTime_ = null;
1683       }
1684       return updateTimeBuilder_;
1685     }
1686 
1687     private com.google.protobuf.MapField<java.lang.String, java.lang.String> labels_;
1688 
internalGetLabels()1689     private com.google.protobuf.MapField<java.lang.String, java.lang.String> internalGetLabels() {
1690       if (labels_ == null) {
1691         return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
1692       }
1693       return labels_;
1694     }
1695 
1696     private com.google.protobuf.MapField<java.lang.String, java.lang.String>
internalGetMutableLabels()1697         internalGetMutableLabels() {
1698       if (labels_ == null) {
1699         labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
1700       }
1701       if (!labels_.isMutable()) {
1702         labels_ = labels_.copy();
1703       }
1704       bitField0_ |= 0x00000008;
1705       onChanged();
1706       return labels_;
1707     }
1708 
getLabelsCount()1709     public int getLabelsCount() {
1710       return internalGetLabels().getMap().size();
1711     }
1712     /**
1713      *
1714      *
1715      * <pre>
1716      * The labels associated with this game server config. Each label is a
1717      * key-value pair.
1718      * </pre>
1719      *
1720      * <code>map&lt;string, string&gt; labels = 4;</code>
1721      */
1722     @java.lang.Override
containsLabels(java.lang.String key)1723     public boolean containsLabels(java.lang.String key) {
1724       if (key == null) {
1725         throw new NullPointerException("map key");
1726       }
1727       return internalGetLabels().getMap().containsKey(key);
1728     }
1729     /** Use {@link #getLabelsMap()} instead. */
1730     @java.lang.Override
1731     @java.lang.Deprecated
getLabels()1732     public java.util.Map<java.lang.String, java.lang.String> getLabels() {
1733       return getLabelsMap();
1734     }
1735     /**
1736      *
1737      *
1738      * <pre>
1739      * The labels associated with this game server config. Each label is a
1740      * key-value pair.
1741      * </pre>
1742      *
1743      * <code>map&lt;string, string&gt; labels = 4;</code>
1744      */
1745     @java.lang.Override
getLabelsMap()1746     public java.util.Map<java.lang.String, java.lang.String> getLabelsMap() {
1747       return internalGetLabels().getMap();
1748     }
1749     /**
1750      *
1751      *
1752      * <pre>
1753      * The labels associated with this game server config. Each label is a
1754      * key-value pair.
1755      * </pre>
1756      *
1757      * <code>map&lt;string, string&gt; labels = 4;</code>
1758      */
1759     @java.lang.Override
getLabelsOrDefault( java.lang.String key, java.lang.String defaultValue)1760     public /* nullable */ java.lang.String getLabelsOrDefault(
1761         java.lang.String key,
1762         /* nullable */
1763         java.lang.String defaultValue) {
1764       if (key == null) {
1765         throw new NullPointerException("map key");
1766       }
1767       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
1768       return map.containsKey(key) ? map.get(key) : defaultValue;
1769     }
1770     /**
1771      *
1772      *
1773      * <pre>
1774      * The labels associated with this game server config. Each label is a
1775      * key-value pair.
1776      * </pre>
1777      *
1778      * <code>map&lt;string, string&gt; labels = 4;</code>
1779      */
1780     @java.lang.Override
getLabelsOrThrow(java.lang.String key)1781     public java.lang.String getLabelsOrThrow(java.lang.String key) {
1782       if (key == null) {
1783         throw new NullPointerException("map key");
1784       }
1785       java.util.Map<java.lang.String, java.lang.String> map = internalGetLabels().getMap();
1786       if (!map.containsKey(key)) {
1787         throw new java.lang.IllegalArgumentException();
1788       }
1789       return map.get(key);
1790     }
1791 
clearLabels()1792     public Builder clearLabels() {
1793       bitField0_ = (bitField0_ & ~0x00000008);
1794       internalGetMutableLabels().getMutableMap().clear();
1795       return this;
1796     }
1797     /**
1798      *
1799      *
1800      * <pre>
1801      * The labels associated with this game server config. Each label is a
1802      * key-value pair.
1803      * </pre>
1804      *
1805      * <code>map&lt;string, string&gt; labels = 4;</code>
1806      */
removeLabels(java.lang.String key)1807     public Builder removeLabels(java.lang.String key) {
1808       if (key == null) {
1809         throw new NullPointerException("map key");
1810       }
1811       internalGetMutableLabels().getMutableMap().remove(key);
1812       return this;
1813     }
1814     /** Use alternate mutation accessors instead. */
1815     @java.lang.Deprecated
getMutableLabels()1816     public java.util.Map<java.lang.String, java.lang.String> getMutableLabels() {
1817       bitField0_ |= 0x00000008;
1818       return internalGetMutableLabels().getMutableMap();
1819     }
1820     /**
1821      *
1822      *
1823      * <pre>
1824      * The labels associated with this game server config. Each label is a
1825      * key-value pair.
1826      * </pre>
1827      *
1828      * <code>map&lt;string, string&gt; labels = 4;</code>
1829      */
putLabels(java.lang.String key, java.lang.String value)1830     public Builder putLabels(java.lang.String key, java.lang.String value) {
1831       if (key == null) {
1832         throw new NullPointerException("map key");
1833       }
1834       if (value == null) {
1835         throw new NullPointerException("map value");
1836       }
1837       internalGetMutableLabels().getMutableMap().put(key, value);
1838       bitField0_ |= 0x00000008;
1839       return this;
1840     }
1841     /**
1842      *
1843      *
1844      * <pre>
1845      * The labels associated with this game server config. Each label is a
1846      * key-value pair.
1847      * </pre>
1848      *
1849      * <code>map&lt;string, string&gt; labels = 4;</code>
1850      */
putAllLabels(java.util.Map<java.lang.String, java.lang.String> values)1851     public Builder putAllLabels(java.util.Map<java.lang.String, java.lang.String> values) {
1852       internalGetMutableLabels().getMutableMap().putAll(values);
1853       bitField0_ |= 0x00000008;
1854       return this;
1855     }
1856 
1857     private java.util.List<com.google.cloud.gaming.v1.FleetConfig> fleetConfigs_ =
1858         java.util.Collections.emptyList();
1859 
ensureFleetConfigsIsMutable()1860     private void ensureFleetConfigsIsMutable() {
1861       if (!((bitField0_ & 0x00000010) != 0)) {
1862         fleetConfigs_ =
1863             new java.util.ArrayList<com.google.cloud.gaming.v1.FleetConfig>(fleetConfigs_);
1864         bitField0_ |= 0x00000010;
1865       }
1866     }
1867 
1868     private com.google.protobuf.RepeatedFieldBuilderV3<
1869             com.google.cloud.gaming.v1.FleetConfig,
1870             com.google.cloud.gaming.v1.FleetConfig.Builder,
1871             com.google.cloud.gaming.v1.FleetConfigOrBuilder>
1872         fleetConfigsBuilder_;
1873 
1874     /**
1875      *
1876      *
1877      * <pre>
1878      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
1879      * is allowed.
1880      * </pre>
1881      *
1882      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
1883      */
getFleetConfigsList()1884     public java.util.List<com.google.cloud.gaming.v1.FleetConfig> getFleetConfigsList() {
1885       if (fleetConfigsBuilder_ == null) {
1886         return java.util.Collections.unmodifiableList(fleetConfigs_);
1887       } else {
1888         return fleetConfigsBuilder_.getMessageList();
1889       }
1890     }
1891     /**
1892      *
1893      *
1894      * <pre>
1895      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
1896      * is allowed.
1897      * </pre>
1898      *
1899      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
1900      */
getFleetConfigsCount()1901     public int getFleetConfigsCount() {
1902       if (fleetConfigsBuilder_ == null) {
1903         return fleetConfigs_.size();
1904       } else {
1905         return fleetConfigsBuilder_.getCount();
1906       }
1907     }
1908     /**
1909      *
1910      *
1911      * <pre>
1912      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
1913      * is allowed.
1914      * </pre>
1915      *
1916      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
1917      */
getFleetConfigs(int index)1918     public com.google.cloud.gaming.v1.FleetConfig getFleetConfigs(int index) {
1919       if (fleetConfigsBuilder_ == null) {
1920         return fleetConfigs_.get(index);
1921       } else {
1922         return fleetConfigsBuilder_.getMessage(index);
1923       }
1924     }
1925     /**
1926      *
1927      *
1928      * <pre>
1929      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
1930      * is allowed.
1931      * </pre>
1932      *
1933      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
1934      */
setFleetConfigs(int index, com.google.cloud.gaming.v1.FleetConfig value)1935     public Builder setFleetConfigs(int index, com.google.cloud.gaming.v1.FleetConfig value) {
1936       if (fleetConfigsBuilder_ == null) {
1937         if (value == null) {
1938           throw new NullPointerException();
1939         }
1940         ensureFleetConfigsIsMutable();
1941         fleetConfigs_.set(index, value);
1942         onChanged();
1943       } else {
1944         fleetConfigsBuilder_.setMessage(index, value);
1945       }
1946       return this;
1947     }
1948     /**
1949      *
1950      *
1951      * <pre>
1952      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
1953      * is allowed.
1954      * </pre>
1955      *
1956      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
1957      */
setFleetConfigs( int index, com.google.cloud.gaming.v1.FleetConfig.Builder builderForValue)1958     public Builder setFleetConfigs(
1959         int index, com.google.cloud.gaming.v1.FleetConfig.Builder builderForValue) {
1960       if (fleetConfigsBuilder_ == null) {
1961         ensureFleetConfigsIsMutable();
1962         fleetConfigs_.set(index, builderForValue.build());
1963         onChanged();
1964       } else {
1965         fleetConfigsBuilder_.setMessage(index, builderForValue.build());
1966       }
1967       return this;
1968     }
1969     /**
1970      *
1971      *
1972      * <pre>
1973      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
1974      * is allowed.
1975      * </pre>
1976      *
1977      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
1978      */
addFleetConfigs(com.google.cloud.gaming.v1.FleetConfig value)1979     public Builder addFleetConfigs(com.google.cloud.gaming.v1.FleetConfig value) {
1980       if (fleetConfigsBuilder_ == null) {
1981         if (value == null) {
1982           throw new NullPointerException();
1983         }
1984         ensureFleetConfigsIsMutable();
1985         fleetConfigs_.add(value);
1986         onChanged();
1987       } else {
1988         fleetConfigsBuilder_.addMessage(value);
1989       }
1990       return this;
1991     }
1992     /**
1993      *
1994      *
1995      * <pre>
1996      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
1997      * is allowed.
1998      * </pre>
1999      *
2000      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
2001      */
addFleetConfigs(int index, com.google.cloud.gaming.v1.FleetConfig value)2002     public Builder addFleetConfigs(int index, com.google.cloud.gaming.v1.FleetConfig value) {
2003       if (fleetConfigsBuilder_ == null) {
2004         if (value == null) {
2005           throw new NullPointerException();
2006         }
2007         ensureFleetConfigsIsMutable();
2008         fleetConfigs_.add(index, value);
2009         onChanged();
2010       } else {
2011         fleetConfigsBuilder_.addMessage(index, value);
2012       }
2013       return this;
2014     }
2015     /**
2016      *
2017      *
2018      * <pre>
2019      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
2020      * is allowed.
2021      * </pre>
2022      *
2023      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
2024      */
addFleetConfigs(com.google.cloud.gaming.v1.FleetConfig.Builder builderForValue)2025     public Builder addFleetConfigs(com.google.cloud.gaming.v1.FleetConfig.Builder builderForValue) {
2026       if (fleetConfigsBuilder_ == null) {
2027         ensureFleetConfigsIsMutable();
2028         fleetConfigs_.add(builderForValue.build());
2029         onChanged();
2030       } else {
2031         fleetConfigsBuilder_.addMessage(builderForValue.build());
2032       }
2033       return this;
2034     }
2035     /**
2036      *
2037      *
2038      * <pre>
2039      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
2040      * is allowed.
2041      * </pre>
2042      *
2043      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
2044      */
addFleetConfigs( int index, com.google.cloud.gaming.v1.FleetConfig.Builder builderForValue)2045     public Builder addFleetConfigs(
2046         int index, com.google.cloud.gaming.v1.FleetConfig.Builder builderForValue) {
2047       if (fleetConfigsBuilder_ == null) {
2048         ensureFleetConfigsIsMutable();
2049         fleetConfigs_.add(index, builderForValue.build());
2050         onChanged();
2051       } else {
2052         fleetConfigsBuilder_.addMessage(index, builderForValue.build());
2053       }
2054       return this;
2055     }
2056     /**
2057      *
2058      *
2059      * <pre>
2060      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
2061      * is allowed.
2062      * </pre>
2063      *
2064      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
2065      */
addAllFleetConfigs( java.lang.Iterable<? extends com.google.cloud.gaming.v1.FleetConfig> values)2066     public Builder addAllFleetConfigs(
2067         java.lang.Iterable<? extends com.google.cloud.gaming.v1.FleetConfig> values) {
2068       if (fleetConfigsBuilder_ == null) {
2069         ensureFleetConfigsIsMutable();
2070         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, fleetConfigs_);
2071         onChanged();
2072       } else {
2073         fleetConfigsBuilder_.addAllMessages(values);
2074       }
2075       return this;
2076     }
2077     /**
2078      *
2079      *
2080      * <pre>
2081      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
2082      * is allowed.
2083      * </pre>
2084      *
2085      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
2086      */
clearFleetConfigs()2087     public Builder clearFleetConfigs() {
2088       if (fleetConfigsBuilder_ == null) {
2089         fleetConfigs_ = java.util.Collections.emptyList();
2090         bitField0_ = (bitField0_ & ~0x00000010);
2091         onChanged();
2092       } else {
2093         fleetConfigsBuilder_.clear();
2094       }
2095       return this;
2096     }
2097     /**
2098      *
2099      *
2100      * <pre>
2101      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
2102      * is allowed.
2103      * </pre>
2104      *
2105      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
2106      */
removeFleetConfigs(int index)2107     public Builder removeFleetConfigs(int index) {
2108       if (fleetConfigsBuilder_ == null) {
2109         ensureFleetConfigsIsMutable();
2110         fleetConfigs_.remove(index);
2111         onChanged();
2112       } else {
2113         fleetConfigsBuilder_.remove(index);
2114       }
2115       return this;
2116     }
2117     /**
2118      *
2119      *
2120      * <pre>
2121      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
2122      * is allowed.
2123      * </pre>
2124      *
2125      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
2126      */
getFleetConfigsBuilder(int index)2127     public com.google.cloud.gaming.v1.FleetConfig.Builder getFleetConfigsBuilder(int index) {
2128       return getFleetConfigsFieldBuilder().getBuilder(index);
2129     }
2130     /**
2131      *
2132      *
2133      * <pre>
2134      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
2135      * is allowed.
2136      * </pre>
2137      *
2138      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
2139      */
getFleetConfigsOrBuilder(int index)2140     public com.google.cloud.gaming.v1.FleetConfigOrBuilder getFleetConfigsOrBuilder(int index) {
2141       if (fleetConfigsBuilder_ == null) {
2142         return fleetConfigs_.get(index);
2143       } else {
2144         return fleetConfigsBuilder_.getMessageOrBuilder(index);
2145       }
2146     }
2147     /**
2148      *
2149      *
2150      * <pre>
2151      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
2152      * is allowed.
2153      * </pre>
2154      *
2155      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
2156      */
2157     public java.util.List<? extends com.google.cloud.gaming.v1.FleetConfigOrBuilder>
getFleetConfigsOrBuilderList()2158         getFleetConfigsOrBuilderList() {
2159       if (fleetConfigsBuilder_ != null) {
2160         return fleetConfigsBuilder_.getMessageOrBuilderList();
2161       } else {
2162         return java.util.Collections.unmodifiableList(fleetConfigs_);
2163       }
2164     }
2165     /**
2166      *
2167      *
2168      * <pre>
2169      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
2170      * is allowed.
2171      * </pre>
2172      *
2173      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
2174      */
addFleetConfigsBuilder()2175     public com.google.cloud.gaming.v1.FleetConfig.Builder addFleetConfigsBuilder() {
2176       return getFleetConfigsFieldBuilder()
2177           .addBuilder(com.google.cloud.gaming.v1.FleetConfig.getDefaultInstance());
2178     }
2179     /**
2180      *
2181      *
2182      * <pre>
2183      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
2184      * is allowed.
2185      * </pre>
2186      *
2187      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
2188      */
addFleetConfigsBuilder(int index)2189     public com.google.cloud.gaming.v1.FleetConfig.Builder addFleetConfigsBuilder(int index) {
2190       return getFleetConfigsFieldBuilder()
2191           .addBuilder(index, com.google.cloud.gaming.v1.FleetConfig.getDefaultInstance());
2192     }
2193     /**
2194      *
2195      *
2196      * <pre>
2197      * FleetConfig contains a list of Agones fleet specs. Only one FleetConfig
2198      * is allowed.
2199      * </pre>
2200      *
2201      * <code>repeated .google.cloud.gaming.v1.FleetConfig fleet_configs = 5;</code>
2202      */
2203     public java.util.List<com.google.cloud.gaming.v1.FleetConfig.Builder>
getFleetConfigsBuilderList()2204         getFleetConfigsBuilderList() {
2205       return getFleetConfigsFieldBuilder().getBuilderList();
2206     }
2207 
2208     private com.google.protobuf.RepeatedFieldBuilderV3<
2209             com.google.cloud.gaming.v1.FleetConfig,
2210             com.google.cloud.gaming.v1.FleetConfig.Builder,
2211             com.google.cloud.gaming.v1.FleetConfigOrBuilder>
getFleetConfigsFieldBuilder()2212         getFleetConfigsFieldBuilder() {
2213       if (fleetConfigsBuilder_ == null) {
2214         fleetConfigsBuilder_ =
2215             new com.google.protobuf.RepeatedFieldBuilderV3<
2216                 com.google.cloud.gaming.v1.FleetConfig,
2217                 com.google.cloud.gaming.v1.FleetConfig.Builder,
2218                 com.google.cloud.gaming.v1.FleetConfigOrBuilder>(
2219                 fleetConfigs_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean());
2220         fleetConfigs_ = null;
2221       }
2222       return fleetConfigsBuilder_;
2223     }
2224 
2225     private java.util.List<com.google.cloud.gaming.v1.ScalingConfig> scalingConfigs_ =
2226         java.util.Collections.emptyList();
2227 
ensureScalingConfigsIsMutable()2228     private void ensureScalingConfigsIsMutable() {
2229       if (!((bitField0_ & 0x00000020) != 0)) {
2230         scalingConfigs_ =
2231             new java.util.ArrayList<com.google.cloud.gaming.v1.ScalingConfig>(scalingConfigs_);
2232         bitField0_ |= 0x00000020;
2233       }
2234     }
2235 
2236     private com.google.protobuf.RepeatedFieldBuilderV3<
2237             com.google.cloud.gaming.v1.ScalingConfig,
2238             com.google.cloud.gaming.v1.ScalingConfig.Builder,
2239             com.google.cloud.gaming.v1.ScalingConfigOrBuilder>
2240         scalingConfigsBuilder_;
2241 
2242     /**
2243      *
2244      *
2245      * <pre>
2246      * The autoscaling settings.
2247      * </pre>
2248      *
2249      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2250      */
getScalingConfigsList()2251     public java.util.List<com.google.cloud.gaming.v1.ScalingConfig> getScalingConfigsList() {
2252       if (scalingConfigsBuilder_ == null) {
2253         return java.util.Collections.unmodifiableList(scalingConfigs_);
2254       } else {
2255         return scalingConfigsBuilder_.getMessageList();
2256       }
2257     }
2258     /**
2259      *
2260      *
2261      * <pre>
2262      * The autoscaling settings.
2263      * </pre>
2264      *
2265      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2266      */
getScalingConfigsCount()2267     public int getScalingConfigsCount() {
2268       if (scalingConfigsBuilder_ == null) {
2269         return scalingConfigs_.size();
2270       } else {
2271         return scalingConfigsBuilder_.getCount();
2272       }
2273     }
2274     /**
2275      *
2276      *
2277      * <pre>
2278      * The autoscaling settings.
2279      * </pre>
2280      *
2281      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2282      */
getScalingConfigs(int index)2283     public com.google.cloud.gaming.v1.ScalingConfig getScalingConfigs(int index) {
2284       if (scalingConfigsBuilder_ == null) {
2285         return scalingConfigs_.get(index);
2286       } else {
2287         return scalingConfigsBuilder_.getMessage(index);
2288       }
2289     }
2290     /**
2291      *
2292      *
2293      * <pre>
2294      * The autoscaling settings.
2295      * </pre>
2296      *
2297      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2298      */
setScalingConfigs(int index, com.google.cloud.gaming.v1.ScalingConfig value)2299     public Builder setScalingConfigs(int index, com.google.cloud.gaming.v1.ScalingConfig value) {
2300       if (scalingConfigsBuilder_ == null) {
2301         if (value == null) {
2302           throw new NullPointerException();
2303         }
2304         ensureScalingConfigsIsMutable();
2305         scalingConfigs_.set(index, value);
2306         onChanged();
2307       } else {
2308         scalingConfigsBuilder_.setMessage(index, value);
2309       }
2310       return this;
2311     }
2312     /**
2313      *
2314      *
2315      * <pre>
2316      * The autoscaling settings.
2317      * </pre>
2318      *
2319      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2320      */
setScalingConfigs( int index, com.google.cloud.gaming.v1.ScalingConfig.Builder builderForValue)2321     public Builder setScalingConfigs(
2322         int index, com.google.cloud.gaming.v1.ScalingConfig.Builder builderForValue) {
2323       if (scalingConfigsBuilder_ == null) {
2324         ensureScalingConfigsIsMutable();
2325         scalingConfigs_.set(index, builderForValue.build());
2326         onChanged();
2327       } else {
2328         scalingConfigsBuilder_.setMessage(index, builderForValue.build());
2329       }
2330       return this;
2331     }
2332     /**
2333      *
2334      *
2335      * <pre>
2336      * The autoscaling settings.
2337      * </pre>
2338      *
2339      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2340      */
addScalingConfigs(com.google.cloud.gaming.v1.ScalingConfig value)2341     public Builder addScalingConfigs(com.google.cloud.gaming.v1.ScalingConfig value) {
2342       if (scalingConfigsBuilder_ == null) {
2343         if (value == null) {
2344           throw new NullPointerException();
2345         }
2346         ensureScalingConfigsIsMutable();
2347         scalingConfigs_.add(value);
2348         onChanged();
2349       } else {
2350         scalingConfigsBuilder_.addMessage(value);
2351       }
2352       return this;
2353     }
2354     /**
2355      *
2356      *
2357      * <pre>
2358      * The autoscaling settings.
2359      * </pre>
2360      *
2361      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2362      */
addScalingConfigs(int index, com.google.cloud.gaming.v1.ScalingConfig value)2363     public Builder addScalingConfigs(int index, com.google.cloud.gaming.v1.ScalingConfig value) {
2364       if (scalingConfigsBuilder_ == null) {
2365         if (value == null) {
2366           throw new NullPointerException();
2367         }
2368         ensureScalingConfigsIsMutable();
2369         scalingConfigs_.add(index, value);
2370         onChanged();
2371       } else {
2372         scalingConfigsBuilder_.addMessage(index, value);
2373       }
2374       return this;
2375     }
2376     /**
2377      *
2378      *
2379      * <pre>
2380      * The autoscaling settings.
2381      * </pre>
2382      *
2383      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2384      */
addScalingConfigs( com.google.cloud.gaming.v1.ScalingConfig.Builder builderForValue)2385     public Builder addScalingConfigs(
2386         com.google.cloud.gaming.v1.ScalingConfig.Builder builderForValue) {
2387       if (scalingConfigsBuilder_ == null) {
2388         ensureScalingConfigsIsMutable();
2389         scalingConfigs_.add(builderForValue.build());
2390         onChanged();
2391       } else {
2392         scalingConfigsBuilder_.addMessage(builderForValue.build());
2393       }
2394       return this;
2395     }
2396     /**
2397      *
2398      *
2399      * <pre>
2400      * The autoscaling settings.
2401      * </pre>
2402      *
2403      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2404      */
addScalingConfigs( int index, com.google.cloud.gaming.v1.ScalingConfig.Builder builderForValue)2405     public Builder addScalingConfigs(
2406         int index, com.google.cloud.gaming.v1.ScalingConfig.Builder builderForValue) {
2407       if (scalingConfigsBuilder_ == null) {
2408         ensureScalingConfigsIsMutable();
2409         scalingConfigs_.add(index, builderForValue.build());
2410         onChanged();
2411       } else {
2412         scalingConfigsBuilder_.addMessage(index, builderForValue.build());
2413       }
2414       return this;
2415     }
2416     /**
2417      *
2418      *
2419      * <pre>
2420      * The autoscaling settings.
2421      * </pre>
2422      *
2423      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2424      */
addAllScalingConfigs( java.lang.Iterable<? extends com.google.cloud.gaming.v1.ScalingConfig> values)2425     public Builder addAllScalingConfigs(
2426         java.lang.Iterable<? extends com.google.cloud.gaming.v1.ScalingConfig> values) {
2427       if (scalingConfigsBuilder_ == null) {
2428         ensureScalingConfigsIsMutable();
2429         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scalingConfigs_);
2430         onChanged();
2431       } else {
2432         scalingConfigsBuilder_.addAllMessages(values);
2433       }
2434       return this;
2435     }
2436     /**
2437      *
2438      *
2439      * <pre>
2440      * The autoscaling settings.
2441      * </pre>
2442      *
2443      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2444      */
clearScalingConfigs()2445     public Builder clearScalingConfigs() {
2446       if (scalingConfigsBuilder_ == null) {
2447         scalingConfigs_ = java.util.Collections.emptyList();
2448         bitField0_ = (bitField0_ & ~0x00000020);
2449         onChanged();
2450       } else {
2451         scalingConfigsBuilder_.clear();
2452       }
2453       return this;
2454     }
2455     /**
2456      *
2457      *
2458      * <pre>
2459      * The autoscaling settings.
2460      * </pre>
2461      *
2462      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2463      */
removeScalingConfigs(int index)2464     public Builder removeScalingConfigs(int index) {
2465       if (scalingConfigsBuilder_ == null) {
2466         ensureScalingConfigsIsMutable();
2467         scalingConfigs_.remove(index);
2468         onChanged();
2469       } else {
2470         scalingConfigsBuilder_.remove(index);
2471       }
2472       return this;
2473     }
2474     /**
2475      *
2476      *
2477      * <pre>
2478      * The autoscaling settings.
2479      * </pre>
2480      *
2481      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2482      */
getScalingConfigsBuilder(int index)2483     public com.google.cloud.gaming.v1.ScalingConfig.Builder getScalingConfigsBuilder(int index) {
2484       return getScalingConfigsFieldBuilder().getBuilder(index);
2485     }
2486     /**
2487      *
2488      *
2489      * <pre>
2490      * The autoscaling settings.
2491      * </pre>
2492      *
2493      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2494      */
getScalingConfigsOrBuilder(int index)2495     public com.google.cloud.gaming.v1.ScalingConfigOrBuilder getScalingConfigsOrBuilder(int index) {
2496       if (scalingConfigsBuilder_ == null) {
2497         return scalingConfigs_.get(index);
2498       } else {
2499         return scalingConfigsBuilder_.getMessageOrBuilder(index);
2500       }
2501     }
2502     /**
2503      *
2504      *
2505      * <pre>
2506      * The autoscaling settings.
2507      * </pre>
2508      *
2509      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2510      */
2511     public java.util.List<? extends com.google.cloud.gaming.v1.ScalingConfigOrBuilder>
getScalingConfigsOrBuilderList()2512         getScalingConfigsOrBuilderList() {
2513       if (scalingConfigsBuilder_ != null) {
2514         return scalingConfigsBuilder_.getMessageOrBuilderList();
2515       } else {
2516         return java.util.Collections.unmodifiableList(scalingConfigs_);
2517       }
2518     }
2519     /**
2520      *
2521      *
2522      * <pre>
2523      * The autoscaling settings.
2524      * </pre>
2525      *
2526      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2527      */
addScalingConfigsBuilder()2528     public com.google.cloud.gaming.v1.ScalingConfig.Builder addScalingConfigsBuilder() {
2529       return getScalingConfigsFieldBuilder()
2530           .addBuilder(com.google.cloud.gaming.v1.ScalingConfig.getDefaultInstance());
2531     }
2532     /**
2533      *
2534      *
2535      * <pre>
2536      * The autoscaling settings.
2537      * </pre>
2538      *
2539      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2540      */
addScalingConfigsBuilder(int index)2541     public com.google.cloud.gaming.v1.ScalingConfig.Builder addScalingConfigsBuilder(int index) {
2542       return getScalingConfigsFieldBuilder()
2543           .addBuilder(index, com.google.cloud.gaming.v1.ScalingConfig.getDefaultInstance());
2544     }
2545     /**
2546      *
2547      *
2548      * <pre>
2549      * The autoscaling settings.
2550      * </pre>
2551      *
2552      * <code>repeated .google.cloud.gaming.v1.ScalingConfig scaling_configs = 6;</code>
2553      */
2554     public java.util.List<com.google.cloud.gaming.v1.ScalingConfig.Builder>
getScalingConfigsBuilderList()2555         getScalingConfigsBuilderList() {
2556       return getScalingConfigsFieldBuilder().getBuilderList();
2557     }
2558 
2559     private com.google.protobuf.RepeatedFieldBuilderV3<
2560             com.google.cloud.gaming.v1.ScalingConfig,
2561             com.google.cloud.gaming.v1.ScalingConfig.Builder,
2562             com.google.cloud.gaming.v1.ScalingConfigOrBuilder>
getScalingConfigsFieldBuilder()2563         getScalingConfigsFieldBuilder() {
2564       if (scalingConfigsBuilder_ == null) {
2565         scalingConfigsBuilder_ =
2566             new com.google.protobuf.RepeatedFieldBuilderV3<
2567                 com.google.cloud.gaming.v1.ScalingConfig,
2568                 com.google.cloud.gaming.v1.ScalingConfig.Builder,
2569                 com.google.cloud.gaming.v1.ScalingConfigOrBuilder>(
2570                 scalingConfigs_,
2571                 ((bitField0_ & 0x00000020) != 0),
2572                 getParentForChildren(),
2573                 isClean());
2574         scalingConfigs_ = null;
2575       }
2576       return scalingConfigsBuilder_;
2577     }
2578 
2579     private java.lang.Object description_ = "";
2580     /**
2581      *
2582      *
2583      * <pre>
2584      * The description of the game server config.
2585      * </pre>
2586      *
2587      * <code>string description = 7;</code>
2588      *
2589      * @return The description.
2590      */
getDescription()2591     public java.lang.String getDescription() {
2592       java.lang.Object ref = description_;
2593       if (!(ref instanceof java.lang.String)) {
2594         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2595         java.lang.String s = bs.toStringUtf8();
2596         description_ = s;
2597         return s;
2598       } else {
2599         return (java.lang.String) ref;
2600       }
2601     }
2602     /**
2603      *
2604      *
2605      * <pre>
2606      * The description of the game server config.
2607      * </pre>
2608      *
2609      * <code>string description = 7;</code>
2610      *
2611      * @return The bytes for description.
2612      */
getDescriptionBytes()2613     public com.google.protobuf.ByteString getDescriptionBytes() {
2614       java.lang.Object ref = description_;
2615       if (ref instanceof String) {
2616         com.google.protobuf.ByteString b =
2617             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2618         description_ = b;
2619         return b;
2620       } else {
2621         return (com.google.protobuf.ByteString) ref;
2622       }
2623     }
2624     /**
2625      *
2626      *
2627      * <pre>
2628      * The description of the game server config.
2629      * </pre>
2630      *
2631      * <code>string description = 7;</code>
2632      *
2633      * @param value The description to set.
2634      * @return This builder for chaining.
2635      */
setDescription(java.lang.String value)2636     public Builder setDescription(java.lang.String value) {
2637       if (value == null) {
2638         throw new NullPointerException();
2639       }
2640       description_ = value;
2641       bitField0_ |= 0x00000040;
2642       onChanged();
2643       return this;
2644     }
2645     /**
2646      *
2647      *
2648      * <pre>
2649      * The description of the game server config.
2650      * </pre>
2651      *
2652      * <code>string description = 7;</code>
2653      *
2654      * @return This builder for chaining.
2655      */
clearDescription()2656     public Builder clearDescription() {
2657       description_ = getDefaultInstance().getDescription();
2658       bitField0_ = (bitField0_ & ~0x00000040);
2659       onChanged();
2660       return this;
2661     }
2662     /**
2663      *
2664      *
2665      * <pre>
2666      * The description of the game server config.
2667      * </pre>
2668      *
2669      * <code>string description = 7;</code>
2670      *
2671      * @param value The bytes for description to set.
2672      * @return This builder for chaining.
2673      */
setDescriptionBytes(com.google.protobuf.ByteString value)2674     public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
2675       if (value == null) {
2676         throw new NullPointerException();
2677       }
2678       checkByteStringIsUtf8(value);
2679       description_ = value;
2680       bitField0_ |= 0x00000040;
2681       onChanged();
2682       return this;
2683     }
2684 
2685     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)2686     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
2687       return super.setUnknownFields(unknownFields);
2688     }
2689 
2690     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2691     public final Builder mergeUnknownFields(
2692         final com.google.protobuf.UnknownFieldSet unknownFields) {
2693       return super.mergeUnknownFields(unknownFields);
2694     }
2695 
2696     // @@protoc_insertion_point(builder_scope:google.cloud.gaming.v1.GameServerConfig)
2697   }
2698 
2699   // @@protoc_insertion_point(class_scope:google.cloud.gaming.v1.GameServerConfig)
2700   private static final com.google.cloud.gaming.v1.GameServerConfig DEFAULT_INSTANCE;
2701 
2702   static {
2703     DEFAULT_INSTANCE = new com.google.cloud.gaming.v1.GameServerConfig();
2704   }
2705 
getDefaultInstance()2706   public static com.google.cloud.gaming.v1.GameServerConfig getDefaultInstance() {
2707     return DEFAULT_INSTANCE;
2708   }
2709 
2710   private static final com.google.protobuf.Parser<GameServerConfig> PARSER =
2711       new com.google.protobuf.AbstractParser<GameServerConfig>() {
2712         @java.lang.Override
2713         public GameServerConfig parsePartialFrom(
2714             com.google.protobuf.CodedInputStream input,
2715             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2716             throws com.google.protobuf.InvalidProtocolBufferException {
2717           Builder builder = newBuilder();
2718           try {
2719             builder.mergeFrom(input, extensionRegistry);
2720           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2721             throw e.setUnfinishedMessage(builder.buildPartial());
2722           } catch (com.google.protobuf.UninitializedMessageException e) {
2723             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
2724           } catch (java.io.IOException e) {
2725             throw new com.google.protobuf.InvalidProtocolBufferException(e)
2726                 .setUnfinishedMessage(builder.buildPartial());
2727           }
2728           return builder.buildPartial();
2729         }
2730       };
2731 
parser()2732   public static com.google.protobuf.Parser<GameServerConfig> parser() {
2733     return PARSER;
2734   }
2735 
2736   @java.lang.Override
getParserForType()2737   public com.google.protobuf.Parser<GameServerConfig> getParserForType() {
2738     return PARSER;
2739   }
2740 
2741   @java.lang.Override
getDefaultInstanceForType()2742   public com.google.cloud.gaming.v1.GameServerConfig getDefaultInstanceForType() {
2743     return DEFAULT_INSTANCE;
2744   }
2745 }
2746