Class Target.Builder (1.49.0)

public static final class Target.Builder extends GeneratedMessageV3.Builder<Target.Builder> implements TargetOrBuilder

A Target resource in the Cloud Deploy API.

A Target defines a location to which a Skaffold configuration can be deployed.

Protobuf type google.cloud.deploy.v1.Target

Implements

TargetOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllExecutionConfigs(Iterable<? extends ExecutionConfig> values)

public Target.Builder addAllExecutionConfigs(Iterable<? extends ExecutionConfig> values)

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Parameter
Name Description
values Iterable<? extends com.google.cloud.deploy.v1.ExecutionConfig>
Returns
Type Description
Target.Builder

addExecutionConfigs(ExecutionConfig value)

public Target.Builder addExecutionConfigs(ExecutionConfig value)

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Parameter
Name Description
value ExecutionConfig
Returns
Type Description
Target.Builder

addExecutionConfigs(ExecutionConfig.Builder builderForValue)

public Target.Builder addExecutionConfigs(ExecutionConfig.Builder builderForValue)

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Parameter
Name Description
builderForValue ExecutionConfig.Builder
Returns
Type Description
Target.Builder

addExecutionConfigs(int index, ExecutionConfig value)

public Target.Builder addExecutionConfigs(int index, ExecutionConfig value)

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Parameters
Name Description
index int
value ExecutionConfig
Returns
Type Description
Target.Builder

addExecutionConfigs(int index, ExecutionConfig.Builder builderForValue)

public Target.Builder addExecutionConfigs(int index, ExecutionConfig.Builder builderForValue)

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Parameters
Name Description
index int
builderForValue ExecutionConfig.Builder
Returns
Type Description
Target.Builder

addExecutionConfigsBuilder()

public ExecutionConfig.Builder addExecutionConfigsBuilder()

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Returns
Type Description
ExecutionConfig.Builder

addExecutionConfigsBuilder(int index)

public ExecutionConfig.Builder addExecutionConfigsBuilder(int index)

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Parameter
Name Description
index int
Returns
Type Description
ExecutionConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Target.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Target.Builder
Overrides

build()

public Target build()
Returns
Type Description
Target

buildPartial()

public Target buildPartial()
Returns
Type Description
Target

clear()

public Target.Builder clear()
Returns
Type Description
Target.Builder
Overrides

clearAnnotations()

public Target.Builder clearAnnotations()
Returns
Type Description
Target.Builder

clearAnthosCluster()

public Target.Builder clearAnthosCluster()

Optional. Information specifying an Anthos Cluster.

.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Target.Builder

clearCreateTime()

public Target.Builder clearCreateTime()

Output only. Time at which the Target was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Target.Builder

clearCustomTarget()

public Target.Builder clearCustomTarget()

Optional. Information specifying a Custom Target.

.google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Target.Builder

clearDeployParameters()

public Target.Builder clearDeployParameters()
Returns
Type Description
Target.Builder

clearDeploymentTarget()

public Target.Builder clearDeploymentTarget()
Returns
Type Description
Target.Builder

clearDescription()

public Target.Builder clearDescription()

Optional. Description of the Target. Max length is 255 characters.

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

Returns
Type Description
Target.Builder

This builder for chaining.

clearEtag()

public Target.Builder clearEtag()

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Target.Builder

This builder for chaining.

clearExecutionConfigs()

public Target.Builder clearExecutionConfigs()

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Returns
Type Description
Target.Builder

clearField(Descriptors.FieldDescriptor field)

public Target.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Target.Builder
Overrides

clearGke()

public Target.Builder clearGke()

Optional. Information specifying a GKE Cluster.

.google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Target.Builder

clearLabels()

public Target.Builder clearLabels()
Returns
Type Description
Target.Builder

clearMultiTarget()

public Target.Builder clearMultiTarget()

Optional. Information specifying a multiTarget.

.google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Target.Builder

clearName()

public Target.Builder clearName()

Optional. Name of the Target. Format is projects/{project}/locations/{location}/targets/{target}. The target component must match a-z?

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Target.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Target.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Target.Builder
Overrides

clearRequireApproval()

public Target.Builder clearRequireApproval()

Optional. Whether or not the Target requires approval.

bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Target.Builder

This builder for chaining.

clearRun()

public Target.Builder clearRun()

Optional. Information specifying a Cloud Run deployment target.

.google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Target.Builder

clearTargetId()

public Target.Builder clearTargetId()

Output only. Resource id of the Target.

string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Target.Builder

This builder for chaining.

clearUid()

public Target.Builder clearUid()

Output only. Unique identifier of the Target.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Target.Builder

This builder for chaining.

clearUpdateTime()

public Target.Builder clearUpdateTime()

Output only. Most recent time at which the Target was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Target.Builder

clone()

public Target.Builder clone()
Returns
Type Description
Target.Builder
Overrides

containsAnnotations(String key)

public boolean containsAnnotations(String key)

Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsDeployParameters(String key)

public boolean containsDeployParameters(String key)

Optional. The deploy parameters to use for this target.

map<string, string> deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints:

  • Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
  • All characters must use UTF-8 encoding, and international characters are allowed.
  • Keys must start with a lowercase letter or international character.
  • Each resource is limited to a maximum of 64 labels.

    Both keys and values are additionally constrained to be <= 128 bytes.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAnnotations() (deprecated)

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
Type Description
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getAnnotationsOrDefault(String key, String defaultValue)

public String getAnnotationsOrDefault(String key, String defaultValue)

Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getAnnotationsOrThrow(String key)

public String getAnnotationsOrThrow(String key)

Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getAnthosCluster()

public AnthosCluster getAnthosCluster()

Optional. Information specifying an Anthos Cluster.

.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AnthosCluster

The anthosCluster.

getAnthosClusterBuilder()

public AnthosCluster.Builder getAnthosClusterBuilder()

Optional. Information specifying an Anthos Cluster.

.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AnthosCluster.Builder

getAnthosClusterOrBuilder()

public AnthosClusterOrBuilder getAnthosClusterOrBuilder()

Optional. Information specifying an Anthos Cluster.

.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AnthosClusterOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. Time at which the Target was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time at which the Target was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time at which the Target was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getCustomTarget()

public CustomTarget getCustomTarget()

Optional. Information specifying a Custom Target.

.google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomTarget

The customTarget.

getCustomTargetBuilder()

public CustomTarget.Builder getCustomTargetBuilder()

Optional. Information specifying a Custom Target.

.google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomTarget.Builder

getCustomTargetOrBuilder()

public CustomTargetOrBuilder getCustomTargetOrBuilder()

Optional. Information specifying a Custom Target.

.google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomTargetOrBuilder

getDefaultInstanceForType()

public Target getDefaultInstanceForType()
Returns
Type Description
Target

getDeployParameters() (deprecated)

public Map<String,String> getDeployParameters()
Returns
Type Description
Map<String,String>

getDeployParametersCount()

public int getDeployParametersCount()

Optional. The deploy parameters to use for this target.

map<string, string> deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getDeployParametersMap()

public Map<String,String> getDeployParametersMap()

Optional. The deploy parameters to use for this target.

map<string, string> deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getDeployParametersOrDefault(String key, String defaultValue)

public String getDeployParametersOrDefault(String key, String defaultValue)

Optional. The deploy parameters to use for this target.

map<string, string> deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getDeployParametersOrThrow(String key)

public String getDeployParametersOrThrow(String key)

Optional. The deploy parameters to use for this target.

map<string, string> deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getDeploymentTargetCase()

public Target.DeploymentTargetCase getDeploymentTargetCase()
Returns
Type Description
Target.DeploymentTargetCase

getDescription()

public String getDescription()

Optional. Description of the Target. Max length is 255 characters.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the Target. Max length is 255 characters.

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

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEtag()

public String getEtag()

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for etag.

getExecutionConfigs(int index)

public ExecutionConfig getExecutionConfigs(int index)

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Parameter
Name Description
index int
Returns
Type Description
ExecutionConfig

getExecutionConfigsBuilder(int index)

public ExecutionConfig.Builder getExecutionConfigsBuilder(int index)

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Parameter
Name Description
index int
Returns
Type Description
ExecutionConfig.Builder

getExecutionConfigsBuilderList()

public List<ExecutionConfig.Builder> getExecutionConfigsBuilderList()

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Returns
Type Description
List<Builder>

getExecutionConfigsCount()

public int getExecutionConfigsCount()

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Returns
Type Description
int

getExecutionConfigsList()

public List<ExecutionConfig> getExecutionConfigsList()

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Returns
Type Description
List<ExecutionConfig>

getExecutionConfigsOrBuilder(int index)

public ExecutionConfigOrBuilder getExecutionConfigsOrBuilder(int index)

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Parameter
Name Description
index int
Returns
Type Description
ExecutionConfigOrBuilder

getExecutionConfigsOrBuilderList()

public List<? extends ExecutionConfigOrBuilder> getExecutionConfigsOrBuilderList()

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Returns
Type Description
List<? extends com.google.cloud.deploy.v1.ExecutionConfigOrBuilder>

getGke()

public GkeCluster getGke()

Optional. Information specifying a GKE Cluster.

.google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GkeCluster

The gke.

getGkeBuilder()

public GkeCluster.Builder getGkeBuilder()

Optional. Information specifying a GKE Cluster.

.google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GkeCluster.Builder

getGkeOrBuilder()

public GkeClusterOrBuilder getGkeOrBuilder()

Optional. Information specifying a GKE Cluster.

.google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GkeClusterOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints:

  • Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
  • All characters must use UTF-8 encoding, and international characters are allowed.
  • Keys must start with a lowercase letter or international character.
  • Each resource is limited to a maximum of 64 labels.

    Both keys and values are additionally constrained to be <= 128 bytes.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints:

  • Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
  • All characters must use UTF-8 encoding, and international characters are allowed.
  • Keys must start with a lowercase letter or international character.
  • Each resource is limited to a maximum of 64 labels.

    Both keys and values are additionally constrained to be <= 128 bytes.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints:

  • Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
  • All characters must use UTF-8 encoding, and international characters are allowed.
  • Keys must start with a lowercase letter or international character.
  • Each resource is limited to a maximum of 64 labels.

    Both keys and values are additionally constrained to be <= 128 bytes.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints:

  • Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
  • All characters must use UTF-8 encoding, and international characters are allowed.
  • Keys must start with a lowercase letter or international character.
  • Each resource is limited to a maximum of 64 labels.

    Both keys and values are additionally constrained to be <= 128 bytes.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMultiTarget()

public MultiTarget getMultiTarget()

Optional. Information specifying a multiTarget.

.google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MultiTarget

The multiTarget.

getMultiTargetBuilder()

public MultiTarget.Builder getMultiTargetBuilder()

Optional. Information specifying a multiTarget.

.google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MultiTarget.Builder

getMultiTargetOrBuilder()

public MultiTargetOrBuilder getMultiTargetOrBuilder()

Optional. Information specifying a multiTarget.

.google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MultiTargetOrBuilder

getMutableAnnotations() (deprecated)

public Map<String,String> getMutableAnnotations()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableDeployParameters() (deprecated)

public Map<String,String> getMutableDeployParameters()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Optional. Name of the Target. Format is projects/{project}/locations/{location}/targets/{target}. The target component must match a-z?

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optional. Name of the Target. Format is projects/{project}/locations/{location}/targets/{target}. The target component must match a-z?

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for name.

getRequireApproval()

public boolean getRequireApproval()

Optional. Whether or not the Target requires approval.

bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The requireApproval.

getRun()

public CloudRunLocation getRun()

Optional. Information specifying a Cloud Run deployment target.

.google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CloudRunLocation

The run.

getRunBuilder()

public CloudRunLocation.Builder getRunBuilder()

Optional. Information specifying a Cloud Run deployment target.

.google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CloudRunLocation.Builder

getRunOrBuilder()

public CloudRunLocationOrBuilder getRunOrBuilder()

Optional. Information specifying a Cloud Run deployment target.

.google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CloudRunLocationOrBuilder

getTargetId()

public String getTargetId()

Output only. Resource id of the Target.

string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The targetId.

getTargetIdBytes()

public ByteString getTargetIdBytes()

Output only. Resource id of the Target.

string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for targetId.

getUid()

public String getUid()

Output only. Unique identifier of the Target.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The uid.

getUidBytes()

public ByteString getUidBytes()

Output only. Unique identifier of the Target.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for uid.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Most recent time at which the Target was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Most recent time at which the Target was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Most recent time at which the Target was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasAnthosCluster()

public boolean hasAnthosCluster()

Optional. Information specifying an Anthos Cluster.

.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the anthosCluster field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. Time at which the Target was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasCustomTarget()

public boolean hasCustomTarget()

Optional. Information specifying a Custom Target.

.google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customTarget field is set.

hasGke()

public boolean hasGke()

Optional. Information specifying a GKE Cluster.

.google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the gke field is set.

hasMultiTarget()

public boolean hasMultiTarget()

Optional. Information specifying a multiTarget.

.google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the multiTarget field is set.

hasRun()

public boolean hasRun()

Optional. Information specifying a Cloud Run deployment target.

.google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the run field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Most recent time at which the Target was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAnthosCluster(AnthosCluster value)

public Target.Builder mergeAnthosCluster(AnthosCluster value)

Optional. Information specifying an Anthos Cluster.

.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AnthosCluster
Returns
Type Description
Target.Builder

mergeCreateTime(Timestamp value)

public Target.Builder mergeCreateTime(Timestamp value)

Output only. Time at which the Target was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Target.Builder

mergeCustomTarget(CustomTarget value)

public Target.Builder mergeCustomTarget(CustomTarget value)

Optional. Information specifying a Custom Target.

.google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CustomTarget
Returns
Type Description
Target.Builder

mergeFrom(Target other)

public Target.Builder mergeFrom(Target other)
Parameter
Name Description
other Target
Returns
Type Description
Target.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Target.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Target.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Target.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Target.Builder
Overrides

mergeGke(GkeCluster value)

public Target.Builder mergeGke(GkeCluster value)

Optional. Information specifying a GKE Cluster.

.google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GkeCluster
Returns
Type Description
Target.Builder

mergeMultiTarget(MultiTarget value)

public Target.Builder mergeMultiTarget(MultiTarget value)

Optional. Information specifying a multiTarget.

.google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MultiTarget
Returns
Type Description
Target.Builder

mergeRun(CloudRunLocation value)

public Target.Builder mergeRun(CloudRunLocation value)

Optional. Information specifying a Cloud Run deployment target.

.google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CloudRunLocation
Returns
Type Description
Target.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Target.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Target.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Target.Builder mergeUpdateTime(Timestamp value)

Output only. Most recent time at which the Target was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Target.Builder

putAllAnnotations(Map<String,String> values)

public Target.Builder putAllAnnotations(Map<String,String> values)

Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Target.Builder

putAllDeployParameters(Map<String,String> values)

public Target.Builder putAllDeployParameters(Map<String,String> values)

Optional. The deploy parameters to use for this target.

map<string, string> deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Target.Builder

putAllLabels(Map<String,String> values)

public Target.Builder putAllLabels(Map<String,String> values)

Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints:

  • Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
  • All characters must use UTF-8 encoding, and international characters are allowed.
  • Keys must start with a lowercase letter or international character.
  • Each resource is limited to a maximum of 64 labels.

    Both keys and values are additionally constrained to be <= 128 bytes.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
Target.Builder

putAnnotations(String key, String value)

public Target.Builder putAnnotations(String key, String value)

Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Target.Builder

putDeployParameters(String key, String value)

public Target.Builder putDeployParameters(String key, String value)

Optional. The deploy parameters to use for this target.

map<string, string> deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Target.Builder

putLabels(String key, String value)

public Target.Builder putLabels(String key, String value)

Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints:

  • Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
  • All characters must use UTF-8 encoding, and international characters are allowed.
  • Keys must start with a lowercase letter or international character.
  • Each resource is limited to a maximum of 64 labels.

    Both keys and values are additionally constrained to be <= 128 bytes.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
Target.Builder

removeAnnotations(String key)

public Target.Builder removeAnnotations(String key)

Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations for more details such as format and size limitations.

map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Target.Builder

removeDeployParameters(String key)

public Target.Builder removeDeployParameters(String key)

Optional. The deploy parameters to use for this target.

map<string, string> deploy_parameters = 20 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Target.Builder

removeExecutionConfigs(int index)

public Target.Builder removeExecutionConfigs(int index)

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Parameter
Name Description
index int
Returns
Type Description
Target.Builder

removeLabels(String key)

public Target.Builder removeLabels(String key)

Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints:

  • Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes.
  • All characters must use UTF-8 encoding, and international characters are allowed.
  • Keys must start with a lowercase letter or international character.
  • Each resource is limited to a maximum of 64 labels.

    Both keys and values are additionally constrained to be <= 128 bytes.

map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
Target.Builder

setAnthosCluster(AnthosCluster value)

public Target.Builder setAnthosCluster(AnthosCluster value)

Optional. Information specifying an Anthos Cluster.

.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value AnthosCluster
Returns
Type Description
Target.Builder

setAnthosCluster(AnthosCluster.Builder builderForValue)

public Target.Builder setAnthosCluster(AnthosCluster.Builder builderForValue)

Optional. Information specifying an Anthos Cluster.

.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue AnthosCluster.Builder
Returns
Type Description
Target.Builder

setCreateTime(Timestamp value)

public Target.Builder setCreateTime(Timestamp value)

Output only. Time at which the Target was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Target.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Target.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Time at which the Target was created.

.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Target.Builder

setCustomTarget(CustomTarget value)

public Target.Builder setCustomTarget(CustomTarget value)

Optional. Information specifying a Custom Target.

.google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CustomTarget
Returns
Type Description
Target.Builder

setCustomTarget(CustomTarget.Builder builderForValue)

public Target.Builder setCustomTarget(CustomTarget.Builder builderForValue)

Optional. Information specifying a Custom Target.

.google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue CustomTarget.Builder
Returns
Type Description
Target.Builder

setDescription(String value)

public Target.Builder setDescription(String value)

Optional. Description of the Target. Max length is 255 characters.

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

Parameter
Name Description
value String

The description to set.

Returns
Type Description
Target.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Target.Builder setDescriptionBytes(ByteString value)

Optional. Description of the Target. Max length is 255 characters.

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

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
Target.Builder

This builder for chaining.

setEtag(String value)

public Target.Builder setEtag(String value)

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
Target.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Target.Builder setEtagBytes(ByteString value)

Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.

string etag = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
Target.Builder

This builder for chaining.

setExecutionConfigs(int index, ExecutionConfig value)

public Target.Builder setExecutionConfigs(int index, ExecutionConfig value)

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Parameters
Name Description
index int
value ExecutionConfig
Returns
Type Description
Target.Builder

setExecutionConfigs(int index, ExecutionConfig.Builder builderForValue)

public Target.Builder setExecutionConfigs(int index, ExecutionConfig.Builder builderForValue)

Configurations for all execution that relates to this Target. Each ExecutionEnvironmentUsage value may only be used in a single configuration; using the same value multiple times is an error. When one or more configurations are specified, they must include the RENDER and DEPLOY ExecutionEnvironmentUsage values. When no configurations are specified, execution will use the default specified in DefaultPool.

repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16;

Parameters
Name Description
index int
builderForValue ExecutionConfig.Builder
Returns
Type Description
Target.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Target.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Target.Builder
Overrides

setGke(GkeCluster value)

public Target.Builder setGke(GkeCluster value)

Optional. Information specifying a GKE Cluster.

.google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GkeCluster
Returns
Type Description
Target.Builder

setGke(GkeCluster.Builder builderForValue)

public Target.Builder setGke(GkeCluster.Builder builderForValue)

Optional. Information specifying a GKE Cluster.

.google.cloud.deploy.v1.GkeCluster gke = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue GkeCluster.Builder
Returns
Type Description
Target.Builder

setMultiTarget(MultiTarget value)

public Target.Builder setMultiTarget(MultiTarget value)

Optional. Information specifying a multiTarget.

.google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MultiTarget
Returns
Type Description
Target.Builder

setMultiTarget(MultiTarget.Builder builderForValue)

public Target.Builder setMultiTarget(MultiTarget.Builder builderForValue)

Optional. Information specifying a multiTarget.

.google.cloud.deploy.v1.MultiTarget multi_target = 19 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue MultiTarget.Builder
Returns
Type Description
Target.Builder

setName(String value)

public Target.Builder setName(String value)

Optional. Name of the Target. Format is projects/{project}/locations/{location}/targets/{target}. The target component must match a-z?

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Target.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Target.Builder setNameBytes(ByteString value)

Optional. Name of the Target. Format is projects/{project}/locations/{location}/targets/{target}. The target component must match a-z?

string name = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Target.Builder

This builder for chaining.

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

public Target.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Target.Builder
Overrides

setRequireApproval(boolean value)

public Target.Builder setRequireApproval(boolean value)

Optional. Whether or not the Target requires approval.

bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The requireApproval to set.

Returns
Type Description
Target.Builder

This builder for chaining.

setRun(CloudRunLocation value)

public Target.Builder setRun(CloudRunLocation value)

Optional. Information specifying a Cloud Run deployment target.

.google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CloudRunLocation
Returns
Type Description
Target.Builder

setRun(CloudRunLocation.Builder builderForValue)

public Target.Builder setRun(CloudRunLocation.Builder builderForValue)

Optional. Information specifying a Cloud Run deployment target.

.google.cloud.deploy.v1.CloudRunLocation run = 18 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue CloudRunLocation.Builder
Returns
Type Description
Target.Builder

setTargetId(String value)

public Target.Builder setTargetId(String value)

Output only. Resource id of the Target.

string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The targetId to set.

Returns
Type Description
Target.Builder

This builder for chaining.

setTargetIdBytes(ByteString value)

public Target.Builder setTargetIdBytes(ByteString value)

Output only. Resource id of the Target.

string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for targetId to set.

Returns
Type Description
Target.Builder

This builder for chaining.

setUid(String value)

public Target.Builder setUid(String value)

Output only. Unique identifier of the Target.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The uid to set.

Returns
Type Description
Target.Builder

This builder for chaining.

setUidBytes(ByteString value)

public Target.Builder setUidBytes(ByteString value)

Output only. Unique identifier of the Target.

string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for uid to set.

Returns
Type Description
Target.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Target.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Target.Builder
Overrides

setUpdateTime(Timestamp value)

public Target.Builder setUpdateTime(Timestamp value)

Output only. Most recent time at which the Target was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
Target.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Target.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Most recent time at which the Target was updated.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Target.Builder