Class BuildArtifact.Builder (1.81.0)

public static final class BuildArtifact.Builder extends GeneratedMessage.Builder<BuildArtifact.Builder> implements BuildArtifactOrBuilder

Description of an a image to use during Skaffold rendering.

Protobuf type google.cloud.deploy.v1.BuildArtifact

Static Methods

getDescriptor()

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

Methods

build()

public BuildArtifact build()
Returns
Type Description
BuildArtifact

buildPartial()

public BuildArtifact buildPartial()
Returns
Type Description
BuildArtifact

clear()

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

clearImage()

public BuildArtifact.Builder clearImage()

Optional. Image name in Skaffold configuration.

string image = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BuildArtifact.Builder

This builder for chaining.

clearTag()

public BuildArtifact.Builder clearTag()

Optional. Image tag to use. This will generally be the full path to an image, such as "gcr.io/my-project/busybox:1.2.3" or "gcr.io/my-project/busybox@sha256:abc123".

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BuildArtifact.Builder

This builder for chaining.

getDefaultInstanceForType()

public BuildArtifact getDefaultInstanceForType()
Returns
Type Description
BuildArtifact

getDescriptorForType()

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

getImage()

public String getImage()

Optional. Image name in Skaffold configuration.

string image = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The image.

getImageBytes()

public ByteString getImageBytes()

Optional. Image name in Skaffold configuration.

string image = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for image.

getTag()

public String getTag()

Optional. Image tag to use. This will generally be the full path to an image, such as "gcr.io/my-project/busybox:1.2.3" or "gcr.io/my-project/busybox@sha256:abc123".

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The tag.

getTagBytes()

public ByteString getTagBytes()

Optional. Image tag to use. This will generally be the full path to an image, such as "gcr.io/my-project/busybox:1.2.3" or "gcr.io/my-project/busybox@sha256:abc123".

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for tag.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BuildArtifact other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setImage(String value)

public BuildArtifact.Builder setImage(String value)

Optional. Image name in Skaffold configuration.

string image = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The image to set.

Returns
Type Description
BuildArtifact.Builder

This builder for chaining.

setImageBytes(ByteString value)

public BuildArtifact.Builder setImageBytes(ByteString value)

Optional. Image name in Skaffold configuration.

string image = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for image to set.

Returns
Type Description
BuildArtifact.Builder

This builder for chaining.

setTag(String value)

public BuildArtifact.Builder setTag(String value)

Optional. Image tag to use. This will generally be the full path to an image, such as "gcr.io/my-project/busybox:1.2.3" or "gcr.io/my-project/busybox@sha256:abc123".

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The tag to set.

Returns
Type Description
BuildArtifact.Builder

This builder for chaining.

setTagBytes(ByteString value)

public BuildArtifact.Builder setTagBytes(ByteString value)

Optional. Image tag to use. This will generally be the full path to an image, such as "gcr.io/my-project/busybox:1.2.3" or "gcr.io/my-project/busybox@sha256:abc123".

string tag = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for tag to set.

Returns
Type Description
BuildArtifact.Builder

This builder for chaining.