Class RevisionScaling (0.39.0)

public final class RevisionScaling extends GeneratedMessageV3 implements RevisionScalingOrBuilder

Settings for revision-level scaling settings.

Protobuf type google.cloud.run.v2.RevisionScaling

Static Fields

MAX_INSTANCE_COUNT_FIELD_NUMBER

public static final int MAX_INSTANCE_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_INSTANCE_COUNT_FIELD_NUMBER

public static final int MIN_INSTANCE_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RevisionScaling getDefaultInstance()
Returns
TypeDescription
RevisionScaling

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RevisionScaling.Builder newBuilder()
Returns
TypeDescription
RevisionScaling.Builder

newBuilder(RevisionScaling prototype)

public static RevisionScaling.Builder newBuilder(RevisionScaling prototype)
Parameter
NameDescription
prototypeRevisionScaling
Returns
TypeDescription
RevisionScaling.Builder

parseDelimitedFrom(InputStream input)

public static RevisionScaling parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RevisionScaling
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RevisionScaling parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RevisionScaling
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RevisionScaling parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RevisionScaling
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RevisionScaling parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RevisionScaling
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RevisionScaling parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RevisionScaling
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RevisionScaling parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RevisionScaling
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RevisionScaling parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RevisionScaling
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RevisionScaling parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RevisionScaling
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RevisionScaling parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RevisionScaling
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RevisionScaling parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RevisionScaling
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RevisionScaling parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RevisionScaling
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RevisionScaling parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RevisionScaling
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RevisionScaling> parser()
Returns
TypeDescription
Parser<RevisionScaling>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RevisionScaling getDefaultInstanceForType()
Returns
TypeDescription
RevisionScaling

getMaxInstanceCount()

public int getMaxInstanceCount()

Maximum number of serving instances that this resource should have.

int32 max_instance_count = 2;

Returns
TypeDescription
int

The maxInstanceCount.

getMinInstanceCount()

public int getMinInstanceCount()

Minimum number of serving instances that this resource should have.

int32 min_instance_count = 1;

Returns
TypeDescription
int

The minInstanceCount.

getParserForType()

public Parser<RevisionScaling> getParserForType()
Returns
TypeDescription
Parser<RevisionScaling>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RevisionScaling.Builder newBuilderForType()
Returns
TypeDescription
RevisionScaling.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RevisionScaling.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RevisionScaling.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RevisionScaling.Builder toBuilder()
Returns
TypeDescription
RevisionScaling.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException