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