Class CloudRunConfig.Builder (1.32.0)

public static final class CloudRunConfig.Builder extends GeneratedMessageV3.Builder<CloudRunConfig.Builder> implements CloudRunConfigOrBuilder

CloudRunConfig contains the Cloud Run runtime configuration.

Protobuf type google.cloud.deploy.v1.CloudRunConfig

Static Methods

getDescriptor()

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

Methods

addAllCanaryRevisionTags(Iterable<String> values)

public CloudRunConfig.Builder addAllCanaryRevisionTags(Iterable<String> values)

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
valuesIterable<String>

The canaryRevisionTags to add.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

addAllPriorRevisionTags(Iterable<String> values)

public CloudRunConfig.Builder addAllPriorRevisionTags(Iterable<String> values)

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
valuesIterable<String>

The priorRevisionTags to add.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

addAllStableRevisionTags(Iterable<String> values)

public CloudRunConfig.Builder addAllStableRevisionTags(Iterable<String> values)

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
valuesIterable<String>

The stableRevisionTags to add.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

addCanaryRevisionTags(String value)

public CloudRunConfig.Builder addCanaryRevisionTags(String value)

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
valueString

The canaryRevisionTags to add.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

addCanaryRevisionTagsBytes(ByteString value)

public CloudRunConfig.Builder addCanaryRevisionTagsBytes(ByteString value)

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
valueByteString

The bytes of the canaryRevisionTags to add.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

addPriorRevisionTags(String value)

public CloudRunConfig.Builder addPriorRevisionTags(String value)

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
valueString

The priorRevisionTags to add.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

addPriorRevisionTagsBytes(ByteString value)

public CloudRunConfig.Builder addPriorRevisionTagsBytes(ByteString value)

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
valueByteString

The bytes of the priorRevisionTags to add.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloudRunConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudRunConfig.Builder
Overrides

addStableRevisionTags(String value)

public CloudRunConfig.Builder addStableRevisionTags(String value)

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
valueString

The stableRevisionTags to add.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

addStableRevisionTagsBytes(ByteString value)

public CloudRunConfig.Builder addStableRevisionTagsBytes(ByteString value)

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
valueByteString

The bytes of the stableRevisionTags to add.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

build()

public CloudRunConfig build()
Returns
TypeDescription
CloudRunConfig

buildPartial()

public CloudRunConfig buildPartial()
Returns
TypeDescription
CloudRunConfig

clear()

public CloudRunConfig.Builder clear()
Returns
TypeDescription
CloudRunConfig.Builder
Overrides

clearAutomaticTrafficControl()

public CloudRunConfig.Builder clearAutomaticTrafficControl()

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
CloudRunConfig.Builder

This builder for chaining.

clearCanaryRevisionTags()

public CloudRunConfig.Builder clearCanaryRevisionTags()

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
CloudRunConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CloudRunConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CloudRunConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CloudRunConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CloudRunConfig.Builder
Overrides

clearPriorRevisionTags()

public CloudRunConfig.Builder clearPriorRevisionTags()

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
CloudRunConfig.Builder

This builder for chaining.

clearStableRevisionTags()

public CloudRunConfig.Builder clearStableRevisionTags()

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
CloudRunConfig.Builder

This builder for chaining.

clone()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CloudRunConfig other)

public CloudRunConfig.Builder mergeFrom(CloudRunConfig other)
Parameter
NameDescription
otherCloudRunConfig
Returns
TypeDescription
CloudRunConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloudRunConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloudRunConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CloudRunConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CloudRunConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloudRunConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudRunConfig.Builder
Overrides

setAutomaticTrafficControl(boolean value)

public CloudRunConfig.Builder setAutomaticTrafficControl(boolean value)

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;

Parameter
NameDescription
valueboolean

The automaticTrafficControl to set.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

setCanaryRevisionTags(int index, String value)

public CloudRunConfig.Builder setCanaryRevisionTags(int index, String value)

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];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The canaryRevisionTags to set.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CloudRunConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloudRunConfig.Builder
Overrides

setPriorRevisionTags(int index, String value)

public CloudRunConfig.Builder setPriorRevisionTags(int index, String value)

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];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The priorRevisionTags to set.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CloudRunConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CloudRunConfig.Builder
Overrides

setStableRevisionTags(int index, String value)

public CloudRunConfig.Builder setStableRevisionTags(int index, String value)

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];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The stableRevisionTags to set.

Returns
TypeDescription
CloudRunConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CloudRunConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloudRunConfig.Builder
Overrides