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.UnusedPrivateParameter
AbstractMessageLite.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, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, 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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
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 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 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 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 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 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<Schedule> getSchedulesList()
The schedules to which this scaling config applies.
repeated .google.cloud.gaming.v1alpha.Schedule schedules = 5;
getSchedulesList
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 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 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 final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static ScalingConfig parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScalingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScalingConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScalingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScalingConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScalingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static ScalingConfig parseFrom(InputStream input) throws IOException
IOException
public static ScalingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ScalingConfig parseDelimitedFrom(InputStream input) throws IOException
IOException
public static ScalingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static ScalingConfig parseFrom(CodedInputStream input) throws IOException
IOException
public static ScalingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public ScalingConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static ScalingConfig.Builder newBuilder()
public static ScalingConfig.Builder newBuilder(ScalingConfig prototype)
public ScalingConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected ScalingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static ScalingConfig getDefaultInstance()
public static Parser<ScalingConfig> parser()
public Parser<ScalingConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public ScalingConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2020 Google LLC. All rights reserved.