Class BuildArtifact.Builder (1.52.0)

public static final class BuildArtifact.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearImage()

public BuildArtifact.Builder clearImage()

Image name in Skaffold configuration.

string image = 3;

Returns
Type Description
BuildArtifact.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTag()

public BuildArtifact.Builder clearTag()

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;

Returns
Type Description
BuildArtifact.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public BuildArtifact getDefaultInstanceForType()
Returns
Type Description
BuildArtifact

getDescriptorForType()

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

getImage()

public String getImage()

Image name in Skaffold configuration.

string image = 3;

Returns
Type Description
String

The image.

getImageBytes()

public ByteString getImageBytes()

Image name in Skaffold configuration.

string image = 3;

Returns
Type Description
ByteString

The bytes for image.

getTag()

public String getTag()

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;

Returns
Type Description
String

The tag.

getTagBytes()

public ByteString getTagBytes()

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;

Returns
Type Description
ByteString

The bytes for tag.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setImage(String value)

public BuildArtifact.Builder setImage(String value)

Image name in Skaffold configuration.

string image = 3;

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)

Image name in Skaffold configuration.

string image = 3;

Parameter
Name Description
value ByteString

The bytes for image to set.

Returns
Type Description
BuildArtifact.Builder

This builder for chaining.

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

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

setTag(String value)

public BuildArtifact.Builder setTag(String value)

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;

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)

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;

Parameter
Name Description
value ByteString

The bytes for tag to set.

Returns
Type Description
BuildArtifact.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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