public final class ScalingConfig extends GeneratedMessageV3 implements ScalingConfigOrBuilder
Autoscaling configs for Agones fleet.Protobuf type
google.cloud.gaming.v1alpha.ScalingConfig| Modifier and Type | Class and Description |
|---|---|
static class |
ScalingConfig.Builder
Autoscaling configs for Agones fleet.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterAbstractMessageLite.InternalOneOfEnum| Modifier and Type | Field and Description |
|---|---|
static int |
FLEET_AUTOSCALER_SPEC_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
SCHEDULES_FIELD_NUMBER |
static int |
SELECTORS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int NAME_FIELD_NUMBER
public static final int FLEET_AUTOSCALER_SPEC_FIELD_NUMBER
public static final int SELECTORS_FIELD_NUMBER
public static final int SCHEDULES_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class GeneratedMessageV3public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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 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 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 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 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 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<Schedule> getSchedulesList()
The schedules to which this scaling config applies.
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5;getSchedulesList 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 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 ScheduleOrBuilder getSchedulesOrBuilder(int index)
The schedules to which this scaling config applies.
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5;getSchedulesOrBuilder in interface ScalingConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static ScalingConfig parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ScalingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ScalingConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ScalingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ScalingConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ScalingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static ScalingConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static ScalingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ScalingConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ScalingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ScalingConfig parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static ScalingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ScalingConfig.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static ScalingConfig.Builder newBuilder()
public static ScalingConfig.Builder newBuilder(ScalingConfig prototype)
public ScalingConfig.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected ScalingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static ScalingConfig getDefaultInstance()
public static Parser<ScalingConfig> parser()
public Parser<ScalingConfig> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public ScalingConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2020 Google LLC. All rights reserved.