Class TargetArtifact.Builder (1.40.0)

public static final class TargetArtifact.Builder extends GeneratedMessageV3.Builder<TargetArtifact.Builder> implements TargetArtifactOrBuilder

The artifacts produced by a target render operation.

Protobuf type google.cloud.deploy.v1.TargetArtifact

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TargetArtifact build()
Returns
Type Description
TargetArtifact

buildPartial()

public TargetArtifact buildPartial()
Returns
Type Description
TargetArtifact

clear()

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

clearArtifactUri()

public TargetArtifact.Builder clearArtifactUri()

Output only. URI of a directory containing the artifacts. This contains deployment configuration used by Skaffold during a rollout, and all paths are relative to this location.

string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TargetArtifact.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearManifestPath()

public TargetArtifact.Builder clearManifestPath()

Output only. File path of the rendered manifest relative to the URI.

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

Returns
Type Description
TargetArtifact.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhaseArtifacts()

public TargetArtifact.Builder clearPhaseArtifacts()
Returns
Type Description
TargetArtifact.Builder

clearSkaffoldConfigPath()

public TargetArtifact.Builder clearSkaffoldConfigPath()

Output only. File path of the resolved Skaffold configuration relative to the URI.

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

Returns
Type Description
TargetArtifact.Builder

This builder for chaining.

clearUri()

public TargetArtifact.Builder clearUri()
Returns
Type Description
TargetArtifact.Builder

clone()

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

containsPhaseArtifacts(String key)

public boolean containsPhaseArtifacts(String key)

Output only. Map from the phase ID to the phase artifacts for the Target.

map<string, .google.cloud.deploy.v1.TargetArtifact.PhaseArtifact> phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getArtifactUri()

public String getArtifactUri()

Output only. URI of a directory containing the artifacts. This contains deployment configuration used by Skaffold during a rollout, and all paths are relative to this location.

string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The artifactUri.

getArtifactUriBytes()

public ByteString getArtifactUriBytes()

Output only. URI of a directory containing the artifacts. This contains deployment configuration used by Skaffold during a rollout, and all paths are relative to this location.

string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for artifactUri.

getDefaultInstanceForType()

public TargetArtifact getDefaultInstanceForType()
Returns
Type Description
TargetArtifact

getDescriptorForType()

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

getManifestPath()

public String getManifestPath()

Output only. File path of the rendered manifest relative to the URI.

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

Returns
Type Description
String

The manifestPath.

getManifestPathBytes()

public ByteString getManifestPathBytes()

Output only. File path of the rendered manifest relative to the URI.

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

Returns
Type Description
ByteString

The bytes for manifestPath.

getMutablePhaseArtifacts() (deprecated)

public Map<String,TargetArtifact.PhaseArtifact> getMutablePhaseArtifacts()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,PhaseArtifact>

getPhaseArtifacts() (deprecated)

public Map<String,TargetArtifact.PhaseArtifact> getPhaseArtifacts()
Returns
Type Description
Map<String,PhaseArtifact>

getPhaseArtifactsCount()

public int getPhaseArtifactsCount()

Output only. Map from the phase ID to the phase artifacts for the Target.

map<string, .google.cloud.deploy.v1.TargetArtifact.PhaseArtifact> phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getPhaseArtifactsMap()

public Map<String,TargetArtifact.PhaseArtifact> getPhaseArtifactsMap()

Output only. Map from the phase ID to the phase artifacts for the Target.

map<string, .google.cloud.deploy.v1.TargetArtifact.PhaseArtifact> phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,PhaseArtifact>

getPhaseArtifactsOrDefault(String key, TargetArtifact.PhaseArtifact defaultValue)

public TargetArtifact.PhaseArtifact getPhaseArtifactsOrDefault(String key, TargetArtifact.PhaseArtifact defaultValue)

Output only. Map from the phase ID to the phase artifacts for the Target.

map<string, .google.cloud.deploy.v1.TargetArtifact.PhaseArtifact> phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue TargetArtifact.PhaseArtifact
Returns
Type Description
TargetArtifact.PhaseArtifact

getPhaseArtifactsOrThrow(String key)

public TargetArtifact.PhaseArtifact getPhaseArtifactsOrThrow(String key)

Output only. Map from the phase ID to the phase artifacts for the Target.

map<string, .google.cloud.deploy.v1.TargetArtifact.PhaseArtifact> phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
TargetArtifact.PhaseArtifact

getSkaffoldConfigPath()

public String getSkaffoldConfigPath()

Output only. File path of the resolved Skaffold configuration relative to the URI.

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

Returns
Type Description
String

The skaffoldConfigPath.

getSkaffoldConfigPathBytes()

public ByteString getSkaffoldConfigPathBytes()

Output only. File path of the resolved Skaffold configuration relative to the URI.

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

Returns
Type Description
ByteString

The bytes for skaffoldConfigPath.

getUriCase()

public TargetArtifact.UriCase getUriCase()
Returns
Type Description
TargetArtifact.UriCase

hasArtifactUri()

public boolean hasArtifactUri()

Output only. URI of a directory containing the artifacts. This contains deployment configuration used by Skaffold during a rollout, and all paths are relative to this location.

string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the artifactUri 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

mergeFrom(TargetArtifact other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllPhaseArtifacts(Map<String,TargetArtifact.PhaseArtifact> values)

public TargetArtifact.Builder putAllPhaseArtifacts(Map<String,TargetArtifact.PhaseArtifact> values)

Output only. Map from the phase ID to the phase artifacts for the Target.

map<string, .google.cloud.deploy.v1.TargetArtifact.PhaseArtifact> phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

putPhaseArtifacts(String key, TargetArtifact.PhaseArtifact value)

public TargetArtifact.Builder putPhaseArtifacts(String key, TargetArtifact.PhaseArtifact value)

Output only. Map from the phase ID to the phase artifacts for the Target.

map<string, .google.cloud.deploy.v1.TargetArtifact.PhaseArtifact> phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value TargetArtifact.PhaseArtifact
Returns
Type Description
TargetArtifact.Builder

putPhaseArtifactsBuilderIfAbsent(String key)

public TargetArtifact.PhaseArtifact.Builder putPhaseArtifactsBuilderIfAbsent(String key)

Output only. Map from the phase ID to the phase artifacts for the Target.

map<string, .google.cloud.deploy.v1.TargetArtifact.PhaseArtifact> phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
TargetArtifact.PhaseArtifact.Builder

removePhaseArtifacts(String key)

public TargetArtifact.Builder removePhaseArtifacts(String key)

Output only. Map from the phase ID to the phase artifacts for the Target.

map<string, .google.cloud.deploy.v1.TargetArtifact.PhaseArtifact> phase_artifacts = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
TargetArtifact.Builder

setArtifactUri(String value)

public TargetArtifact.Builder setArtifactUri(String value)

Output only. URI of a directory containing the artifacts. This contains deployment configuration used by Skaffold during a rollout, and all paths are relative to this location.

string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The artifactUri to set.

Returns
Type Description
TargetArtifact.Builder

This builder for chaining.

setArtifactUriBytes(ByteString value)

public TargetArtifact.Builder setArtifactUriBytes(ByteString value)

Output only. URI of a directory containing the artifacts. This contains deployment configuration used by Skaffold during a rollout, and all paths are relative to this location.

string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for artifactUri to set.

Returns
Type Description
TargetArtifact.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setManifestPath(String value)

public TargetArtifact.Builder setManifestPath(String value)

Output only. File path of the rendered manifest relative to the URI.

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

Parameter
Name Description
value String

The manifestPath to set.

Returns
Type Description
TargetArtifact.Builder

This builder for chaining.

setManifestPathBytes(ByteString value)

public TargetArtifact.Builder setManifestPathBytes(ByteString value)

Output only. File path of the rendered manifest relative to the URI.

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

Parameter
Name Description
value ByteString

The bytes for manifestPath to set.

Returns
Type Description
TargetArtifact.Builder

This builder for chaining.

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

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

setSkaffoldConfigPath(String value)

public TargetArtifact.Builder setSkaffoldConfigPath(String value)

Output only. File path of the resolved Skaffold configuration relative to the URI.

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

Parameter
Name Description
value String

The skaffoldConfigPath to set.

Returns
Type Description
TargetArtifact.Builder

This builder for chaining.

setSkaffoldConfigPathBytes(ByteString value)

public TargetArtifact.Builder setSkaffoldConfigPathBytes(ByteString value)

Output only. File path of the resolved Skaffold configuration relative to the URI.

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

Parameter
Name Description
value ByteString

The bytes for skaffoldConfigPath to set.

Returns
Type Description
TargetArtifact.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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