Class CloudRunConfig (1.35.0)

public final class CloudRunConfig extends GeneratedMessageV3 implements CloudRunConfigOrBuilder

CloudRunConfig contains the Cloud Run runtime configuration.

Protobuf type google.cloud.deploy.v1.CloudRunConfig

Static Fields

AUTOMATIC_TRAFFIC_CONTROL_FIELD_NUMBER

public static final int AUTOMATIC_TRAFFIC_CONTROL_FIELD_NUMBER
Field Value
TypeDescription
int

CANARY_REVISION_TAGS_FIELD_NUMBER

public static final int CANARY_REVISION_TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

PRIOR_REVISION_TAGS_FIELD_NUMBER

public static final int PRIOR_REVISION_TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

STABLE_REVISION_TAGS_FIELD_NUMBER

public static final int STABLE_REVISION_TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CloudRunConfig getDefaultInstance()
Returns
TypeDescription
CloudRunConfig

getDescriptor()

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

newBuilder()

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

newBuilder(CloudRunConfig prototype)

public static CloudRunConfig.Builder newBuilder(CloudRunConfig prototype)
Parameter
NameDescription
prototypeCloudRunConfig
Returns
TypeDescription
CloudRunConfig.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAutomaticTrafficControl()

public boolean getAutomaticTrafficControl()

Whether Cloud Deploy should update the traffic stanza in a Cloud Run Service on the user's behalf to facilitate traffic splitting. This is required to be true for CanaryDeployments, but optional for CustomCanaryDeployments.

bool automatic_traffic_control = 1;

Returns
TypeDescription
boolean

The automaticTrafficControl.

getCanaryRevisionTags(int index)

public String getCanaryRevisionTags(int index)

Optional. A list of tags that are added to the canary revision while the canary phase is in progress.

repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The canaryRevisionTags at the given index.

getCanaryRevisionTagsBytes(int index)

public ByteString getCanaryRevisionTagsBytes(int index)

Optional. A list of tags that are added to the canary revision while the canary phase is in progress.

repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the canaryRevisionTags at the given index.

getCanaryRevisionTagsCount()

public int getCanaryRevisionTagsCount()

Optional. A list of tags that are added to the canary revision while the canary phase is in progress.

repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of canaryRevisionTags.

getCanaryRevisionTagsList()

public ProtocolStringList getCanaryRevisionTagsList()

Optional. A list of tags that are added to the canary revision while the canary phase is in progress.

repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the canaryRevisionTags.

getDefaultInstanceForType()

public CloudRunConfig getDefaultInstanceForType()
Returns
TypeDescription
CloudRunConfig

getParserForType()

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

getPriorRevisionTags(int index)

public String getPriorRevisionTags(int index)

Optional. A list of tags that are added to the prior revision while the canary phase is in progress.

repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The priorRevisionTags at the given index.

getPriorRevisionTagsBytes(int index)

public ByteString getPriorRevisionTagsBytes(int index)

Optional. A list of tags that are added to the prior revision while the canary phase is in progress.

repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the priorRevisionTags at the given index.

getPriorRevisionTagsCount()

public int getPriorRevisionTagsCount()

Optional. A list of tags that are added to the prior revision while the canary phase is in progress.

repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of priorRevisionTags.

getPriorRevisionTagsList()

public ProtocolStringList getPriorRevisionTagsList()

Optional. A list of tags that are added to the prior revision while the canary phase is in progress.

repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the priorRevisionTags.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStableRevisionTags(int index)

public String getStableRevisionTags(int index)

Optional. A list of tags that are added to the final stable revision when the stable phase is applied.

repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The stableRevisionTags at the given index.

getStableRevisionTagsBytes(int index)

public ByteString getStableRevisionTagsBytes(int index)

Optional. A list of tags that are added to the final stable revision when the stable phase is applied.

repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the stableRevisionTags at the given index.

getStableRevisionTagsCount()

public int getStableRevisionTagsCount()

Optional. A list of tags that are added to the final stable revision when the stable phase is applied.

repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of stableRevisionTags.

getStableRevisionTagsList()

public ProtocolStringList getStableRevisionTagsList()

Optional. A list of tags that are added to the final stable revision when the stable phase is applied.

repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the stableRevisionTags.

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 CloudRunConfig.Builder newBuilderForType()
Returns
TypeDescription
CloudRunConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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