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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<ScalingConfig.Builder>
public ScalingConfig.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<ScalingConfig.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<ScalingConfig.Builder>
public ScalingConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public ScalingConfig build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public ScalingConfig buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public ScalingConfig.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<ScalingConfig.Builder>
public ScalingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<ScalingConfig.Builder>
public ScalingConfig.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<ScalingConfig.Builder>
public ScalingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<ScalingConfig.Builder>
public ScalingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<ScalingConfig.Builder>
public ScalingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<ScalingConfig.Builder>
public ScalingConfig.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<ScalingConfig.Builder>
public ScalingConfig.Builder mergeFrom(ScalingConfig other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<ScalingConfig.Builder>
public ScalingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<ScalingConfig.Builder>
IOException
public String getName()
Required. The name of the ScalingConfig
string name = 1 [(.google.api.field_behavior) = REQUIRED];
getName
in interface ScalingConfigOrBuilder
public ByteString getNameBytes()
Required. The name of the ScalingConfig
string name = 1 [(.google.api.field_behavior) = REQUIRED];
getNameBytes
in interface ScalingConfigOrBuilder
public 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 ScalingConfigOrBuilder
public 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 ScalingConfigOrBuilder
public 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 ScalingConfigOrBuilder
public 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 ScalingConfigOrBuilder
public 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 ScalingConfigOrBuilder
public 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 ScalingConfigOrBuilder
public 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 ScalingConfigOrBuilder
public 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 ScalingConfigOrBuilder
public int getSchedulesCount()
The schedules to which this scaling config applies.
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5;
getSchedulesCount
in interface ScalingConfigOrBuilder
public Schedule getSchedules(int index)
The schedules to which this scaling config applies.
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5;
getSchedules
in interface ScalingConfigOrBuilder
public 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 ScalingConfigOrBuilder
public List<? extends ScheduleOrBuilder> getSchedulesOrBuilderList()
The schedules to which this scaling config applies.
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5;
getSchedulesOrBuilderList
in interface ScalingConfigOrBuilder
public 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.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<ScalingConfig.Builder>
public final ScalingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<ScalingConfig.Builder>
Copyright © 2020 Google LLC. All rights reserved.