Class Target.Builder (1.7.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class Target.Builder extends GeneratedMessageV3.Builder<Target.Builder> implements TargetOrBuilder

A Target resource in the Google 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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.deploy.v1.ExecutionConfig>
Returns
TypeDescription
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
NameDescription
valueExecutionConfig
Returns
TypeDescription
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
NameDescription
builderForValueExecutionConfig.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueExecutionConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueExecutionConfig.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ExecutionConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Target build()
Returns
TypeDescription
Target

buildPartial()

public Target buildPartial()
Returns
TypeDescription
Target

clear()

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

clearAnnotations()

public Target.Builder clearAnnotations()
Returns
TypeDescription
Target.Builder

clearAnthosCluster()

public Target.Builder clearAnthosCluster()

Information specifying an Anthos Cluster.

.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;

Returns
TypeDescription
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
TypeDescription
Target.Builder

clearDeploymentTarget()

public Target.Builder clearDeploymentTarget()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Target.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGke()

public Target.Builder clearGke()

Information specifying a GKE Cluster.

.google.cloud.deploy.v1.GkeCluster gke = 15;

Returns
TypeDescription
Target.Builder

clearLabels()

public Target.Builder clearLabels()
Returns
TypeDescription
Target.Builder

clearName()

public Target.Builder clearName()

Optional. Name of the Target. Format is projects/{project}/locations/{location}/targets/a-z{0,62}.

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

Returns
TypeDescription
Target.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Target.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Target.Builder

This builder for chaining.

clearRun()

public Target.Builder clearRun()

Information specifying a Cloud Run deployment target.

.google.cloud.deploy.v1.CloudRunLocation run = 18;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Target.Builder

clone()

public Target.Builder clone()
Returns
TypeDescription
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 Google 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
NameDescription
keyString
Returns
TypeDescription
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 Google 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
NameDescription
keyString
Returns
TypeDescription
boolean

getAnnotations()

public Map<String,String> getAnnotations()

Use #getAnnotationsMap() instead.

Returns
TypeDescription
Map<String,String>

getAnnotationsCount()

public int getAnnotationsCount()

Optional. User annotations. These attributes can only be set and used by the user, and not by Google 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
TypeDescription
int

getAnnotationsMap()

public Map<String,String> getAnnotationsMap()

Optional. User annotations. These attributes can only be set and used by the user, and not by Google 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
TypeDescription
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 Google 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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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 Google 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
NameDescription
keyString
Returns
TypeDescription
String

getAnthosCluster()

public AnthosCluster getAnthosCluster()

Information specifying an Anthos Cluster.

.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;

Returns
TypeDescription
AnthosCluster

The anthosCluster.

getAnthosClusterBuilder()

public AnthosCluster.Builder getAnthosClusterBuilder()

Information specifying an Anthos Cluster.

.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;

Returns
TypeDescription
AnthosCluster.Builder

getAnthosClusterOrBuilder()

public AnthosClusterOrBuilder getAnthosClusterOrBuilder()

Information specifying an Anthos Cluster.

.google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Target getDefaultInstanceForType()
Returns
TypeDescription
Target

getDeploymentTargetCase()

public Target.DeploymentTargetCase getDeploymentTargetCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.deploy.v1.ExecutionConfigOrBuilder>

getGke()

public GkeCluster getGke()

Information specifying a GKE Cluster.

.google.cloud.deploy.v1.GkeCluster gke = 15;

Returns
TypeDescription
GkeCluster

The gke.

getGkeBuilder()