Class CloudRunConfig (1.46.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
Type Description
int

CANARY_REVISION_TAGS_FIELD_NUMBER

public static final int CANARY_REVISION_TAGS_FIELD_NUMBER
Field Value
Type Description
int

PRIOR_REVISION_TAGS_FIELD_NUMBER

public static final int PRIOR_REVISION_TAGS_FIELD_NUMBER
Field Value
Type Description
int

STABLE_REVISION_TAGS_FIELD_NUMBER

public static final int STABLE_REVISION_TAGS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CloudRunConfig getDefaultInstance()
Returns
Type Description
CloudRunConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CloudRunConfig.Builder newBuilder()
Returns
Type Description
CloudRunConfig.Builder

newBuilder(CloudRunConfig prototype)

public static CloudRunConfig.Builder newBuilder(CloudRunConfig prototype)
Parameter
Name Description
prototype CloudRunConfig
Returns
Type Description
CloudRunConfig.Builder

parseDelimitedFrom(InputStream input)

public static CloudRunConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CloudRunConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudRunConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CloudRunConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CloudRunConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CloudRunConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CloudRunConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CloudRunConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CloudRunConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CloudRunConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CloudRunConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudRunConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CloudRunConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CloudRunConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CloudRunConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CloudRunConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CloudRunConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CloudRunConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CloudRunConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CloudRunConfig> parser()
Returns
Type Description
Parser<CloudRunConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the canaryRevisionTags.

getDefaultInstanceForType()

public CloudRunConfig getDefaultInstanceForType()
Returns
Type Description
CloudRunConfig

getParserForType()

public Parser<CloudRunConfig> getParserForType()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the priorRevisionTags.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the stableRevisionTags.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CloudRunConfig.Builder newBuilderForType()
Returns
Type Description
CloudRunConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CloudRunConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CloudRunConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CloudRunConfig.Builder toBuilder()
Returns
Type Description
CloudRunConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException