public static final class ScalingConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder> implements ScalingConfigOrBuilder
Autoscaling config for an Agones fleet.Protobuf type
google.cloud.gaming.v1.ScalingConfig| Modifier and Type | Method and Description |
|---|---|
ScalingConfig.Builder |
addAllSchedules(Iterable<? extends Schedule> values)
The schedules to which this Scaling Config applies.
|
ScalingConfig.Builder |
addAllSelectors(Iterable<? extends LabelSelector> values)
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
ScalingConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ScalingConfig.Builder |
addSchedules(int index,
Schedule.Builder builderForValue)
The schedules to which this Scaling Config applies.
|
ScalingConfig.Builder |
addSchedules(int index,
Schedule value)
The schedules to which this Scaling Config applies.
|
ScalingConfig.Builder |
addSchedules(Schedule.Builder builderForValue)
The schedules to which this Scaling Config applies.
|
ScalingConfig.Builder |
addSchedules(Schedule value)
The schedules to which this Scaling Config applies.
|
Schedule.Builder |
addSchedulesBuilder()
The schedules to which this Scaling Config applies.
|
Schedule.Builder |
addSchedulesBuilder(int index)
The schedules to which this Scaling Config applies.
|
ScalingConfig.Builder |
addSelectors(int index,
LabelSelector.Builder builderForValue)
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
ScalingConfig.Builder |
addSelectors(int index,
LabelSelector value)
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
ScalingConfig.Builder |
addSelectors(LabelSelector.Builder builderForValue)
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
ScalingConfig.Builder |
addSelectors(LabelSelector value)
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
LabelSelector.Builder |
addSelectorsBuilder()
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
LabelSelector.Builder |
addSelectorsBuilder(int index)
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
ScalingConfig |
build() |
ScalingConfig |
buildPartial() |
ScalingConfig.Builder |
clear() |
ScalingConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ScalingConfig.Builder |
clearFleetAutoscalerSpec()
Required.
|
ScalingConfig.Builder |
clearName()
Required.
|
ScalingConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ScalingConfig.Builder |
clearSchedules()
The schedules to which this Scaling Config applies.
|
ScalingConfig.Builder |
clearSelectors()
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
ScalingConfig.Builder |
clone() |
ScalingConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFleetAutoscalerSpec()
Required.
|
com.google.protobuf.ByteString |
getFleetAutoscalerSpecBytes()
Required.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
Schedule |
getSchedules(int index)
The schedules to which this Scaling Config applies.
|
Schedule.Builder |
getSchedulesBuilder(int index)
The schedules to which this Scaling Config applies.
|
List<Schedule.Builder> |
getSchedulesBuilderList()
The schedules to which this Scaling Config applies.
|
int |
getSchedulesCount()
The schedules to which this Scaling Config applies.
|
List<Schedule> |
getSchedulesList()
The schedules to which this Scaling Config applies.
|
ScheduleOrBuilder |
getSchedulesOrBuilder(int index)
The schedules to which this Scaling Config applies.
|
List<? extends ScheduleOrBuilder> |
getSchedulesOrBuilderList()
The schedules to which this Scaling Config applies.
|
LabelSelector |
getSelectors(int index)
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
LabelSelector.Builder |
getSelectorsBuilder(int index)
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
List<LabelSelector.Builder> |
getSelectorsBuilderList()
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
int |
getSelectorsCount()
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
List<LabelSelector> |
getSelectorsList()
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
LabelSelectorOrBuilder |
getSelectorsOrBuilder(int index)
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
List<? extends LabelSelectorOrBuilder> |
getSelectorsOrBuilderList()
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ScalingConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ScalingConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
ScalingConfig.Builder |
mergeFrom(ScalingConfig other) |
ScalingConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ScalingConfig.Builder |
removeSchedules(int index)
The schedules to which this Scaling Config applies.
|
ScalingConfig.Builder |
removeSelectors(int index)
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
ScalingConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ScalingConfig.Builder |
setFleetAutoscalerSpec(String value)
Required.
|
ScalingConfig.Builder |
setFleetAutoscalerSpecBytes(com.google.protobuf.ByteString value)
Required.
|
ScalingConfig.Builder |
setName(String value)
Required.
|
ScalingConfig.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
ScalingConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ScalingConfig.Builder |
setSchedules(int index,
Schedule.Builder builderForValue)
The schedules to which this Scaling Config applies.
|
ScalingConfig.Builder |
setSchedules(int index,
Schedule value)
The schedules to which this Scaling Config applies.
|
ScalingConfig.Builder |
setSelectors(int index,
LabelSelector.Builder builderForValue)
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
ScalingConfig.Builder |
setSelectors(int index,
LabelSelector value)
Labels used to identify the game server clusters to which this Agones
scaling config applies.
|
ScalingConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder>public ScalingConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder>public ScalingConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ScalingConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ScalingConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ScalingConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder>public ScalingConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder>public ScalingConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder>public ScalingConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder>public ScalingConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder>public ScalingConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder>public ScalingConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ScalingConfig.Builder>public ScalingConfig.Builder mergeFrom(ScalingConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder>public ScalingConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ScalingConfig.Builder>IOExceptionpublic String getName()
Required. The name of the Scaling Config
string name = 1 [(.google.api.field_behavior) = REQUIRED];getName in interface ScalingConfigOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. The name of the Scaling Config
string name = 1 [(.google.api.field_behavior) = REQUIRED];getNameBytes in interface ScalingConfigOrBuilderpublic ScalingConfig.Builder setName(String value)
Required. The name of the Scaling Config
string name = 1 [(.google.api.field_behavior) = REQUIRED];value - The name to set.public ScalingConfig.Builder clearName()
Required. The name of the Scaling Config
string name = 1 [(.google.api.field_behavior) = REQUIRED];public ScalingConfig.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. The name of the Scaling Config
string name = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for name to set.public String getFleetAutoscalerSpec()
Required. Agones fleet autoscaler spec. Example spec: https://agones.dev/site/docs/reference/fleetautoscaler/
string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED];getFleetAutoscalerSpec in interface ScalingConfigOrBuilderpublic com.google.protobuf.ByteString getFleetAutoscalerSpecBytes()
Required. Agones fleet autoscaler spec. Example spec: https://agones.dev/site/docs/reference/fleetautoscaler/
string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED];getFleetAutoscalerSpecBytes in interface ScalingConfigOrBuilderpublic ScalingConfig.Builder setFleetAutoscalerSpec(String value)
Required. Agones fleet autoscaler spec. Example spec: https://agones.dev/site/docs/reference/fleetautoscaler/
string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED];value - The fleetAutoscalerSpec to set.public ScalingConfig.Builder clearFleetAutoscalerSpec()
Required. Agones fleet autoscaler spec. Example spec: https://agones.dev/site/docs/reference/fleetautoscaler/
string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED];public ScalingConfig.Builder setFleetAutoscalerSpecBytes(com.google.protobuf.ByteString value)
Required. Agones fleet autoscaler spec. Example spec: https://agones.dev/site/docs/reference/fleetautoscaler/
string fleet_autoscaler_spec = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for fleetAutoscalerSpec to set.public List<LabelSelector> getSelectorsList()
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;getSelectorsList in interface ScalingConfigOrBuilderpublic int getSelectorsCount()
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;getSelectorsCount in interface ScalingConfigOrBuilderpublic LabelSelector getSelectors(int index)
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;getSelectors in interface ScalingConfigOrBuilderpublic ScalingConfig.Builder setSelectors(int index, LabelSelector value)
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public ScalingConfig.Builder setSelectors(int index, LabelSelector.Builder builderForValue)
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public ScalingConfig.Builder addSelectors(LabelSelector value)
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public ScalingConfig.Builder addSelectors(int index, LabelSelector value)
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public ScalingConfig.Builder addSelectors(LabelSelector.Builder builderForValue)
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public ScalingConfig.Builder addSelectors(int index, LabelSelector.Builder builderForValue)
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public ScalingConfig.Builder addAllSelectors(Iterable<? extends LabelSelector> values)
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public ScalingConfig.Builder clearSelectors()
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public ScalingConfig.Builder removeSelectors(int index)
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public LabelSelector.Builder getSelectorsBuilder(int index)
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public LabelSelectorOrBuilder getSelectorsOrBuilder(int index)
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;getSelectorsOrBuilder in interface ScalingConfigOrBuilderpublic List<? extends LabelSelectorOrBuilder> getSelectorsOrBuilderList()
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;getSelectorsOrBuilderList in interface ScalingConfigOrBuilderpublic LabelSelector.Builder addSelectorsBuilder()
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public LabelSelector.Builder addSelectorsBuilder(int index)
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public List<LabelSelector.Builder> getSelectorsBuilderList()
Labels used to identify the game server clusters to which this Agones scaling config applies. A game server cluster is subject to this Agones scaling config if its labels match any of the selector entries.
repeated .google.cloud.gaming.v1.LabelSelector selectors = 4;public List<Schedule> getSchedulesList()
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;getSchedulesList in interface ScalingConfigOrBuilderpublic int getSchedulesCount()
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;getSchedulesCount in interface ScalingConfigOrBuilderpublic Schedule getSchedules(int index)
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;getSchedules in interface ScalingConfigOrBuilderpublic ScalingConfig.Builder setSchedules(int index, Schedule value)
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public ScalingConfig.Builder setSchedules(int index, Schedule.Builder builderForValue)
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public ScalingConfig.Builder addSchedules(Schedule value)
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public ScalingConfig.Builder addSchedules(int index, Schedule value)
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public ScalingConfig.Builder addSchedules(Schedule.Builder builderForValue)
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public ScalingConfig.Builder addSchedules(int index, Schedule.Builder builderForValue)
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public ScalingConfig.Builder addAllSchedules(Iterable<? extends Schedule> values)
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public ScalingConfig.Builder clearSchedules()
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public ScalingConfig.Builder removeSchedules(int index)
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public Schedule.Builder getSchedulesBuilder(int index)
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public ScheduleOrBuilder getSchedulesOrBuilder(int index)
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;getSchedulesOrBuilder in interface ScalingConfigOrBuilderpublic List<? extends ScheduleOrBuilder> getSchedulesOrBuilderList()
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;getSchedulesOrBuilderList in interface ScalingConfigOrBuilderpublic Schedule.Builder addSchedulesBuilder()
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public Schedule.Builder addSchedulesBuilder(int index)
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public List<Schedule.Builder> getSchedulesBuilderList()
The schedules to which this Scaling Config applies.
repeated .google.cloud.gaming.v1.Schedule schedules = 5;public final ScalingConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder>public final ScalingConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ScalingConfig.Builder>Copyright © 2023 Google LLC. All rights reserved.