Class TargetArtifact.Builder (1.27.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TargetArtifact build()
Returns
TypeDescription
TargetArtifact

buildPartial()

public TargetArtifact buildPartial()
Returns
TypeDescription
TargetArtifact

clear()

public TargetArtifact.Builder clear()
Returns
TypeDescription
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
TypeDescription
TargetArtifact.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TargetArtifact.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
TargetArtifact.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhaseArtifacts()

public TargetArtifact.Builder clearPhaseArtifacts()
Returns
TypeDescription
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
TypeDescription
TargetArtifact.Builder

This builder for chaining.

clearUri()

public TargetArtifact.Builder clearUri()
Returns
TypeDescription
TargetArtifact.Builder

clone()

public TargetArtifact.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for artifactUri.

getDefaultInstanceForType()

public TargetArtifact getDefaultInstanceForType()
Returns
TypeDescription
TargetArtifact

getDescriptorForType()

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

The bytes for manifestPath.

getMutablePhaseArtifacts()

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

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,PhaseArtifact>

getPhaseArtifacts()

public Map<String,TargetArtifact.PhaseArtifact> getPhaseArtifacts()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueTargetArtifact.PhaseArtifact
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for skaffoldConfigPath.

getUriCase()

public TargetArtifact.UriCase getUriCase()
Returns
TypeDescription
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
TypeDescription
boolean

Whether the artifactUri field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TargetArtifact other)

public TargetArtifact.Builder mergeFrom(TargetArtifact other)
Parameter
NameDescription
otherTargetArtifact
Returns
TypeDescription
TargetArtifact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TargetArtifact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,PhaseArtifact>
Returns
TypeDescription
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
NameDescription
keyString
valueTargetArtifact.PhaseArtifact
Returns
TypeDescription
TargetArtifact.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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueString

The artifactUri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for artifactUri to set.

Returns
TypeDescription
TargetArtifact.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TargetArtifact.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The manifestPath to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for manifestPath to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The skaffoldConfigPath to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for skaffoldConfigPath to set.

Returns
TypeDescription
TargetArtifact.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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