Class BuildArtifact.Builder (1.3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BuildArtifact build()
Returns
TypeDescription
BuildArtifact

buildPartial()

public BuildArtifact buildPartial()
Returns
TypeDescription
BuildArtifact

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearImage()

public BuildArtifact.Builder clearImage()

Image name in Skaffold configuration.

string image = 3;

Returns
TypeDescription
BuildArtifact.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public BuildArtifact.Builder clone()
Returns
TypeDescription
BuildArtifact.Builder
Overrides

getDefaultInstanceForType()

public BuildArtifact getDefaultInstanceForType()
Returns
TypeDescription
BuildArtifact

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImage()

public String getImage()

Image name in Skaffold configuration.

string image = 3;

Returns
TypeDescription
String

The image.

getImageBytes()

public ByteString getImageBytes()

Image name in Skaffold configuration.

string image = 3;

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

The bytes for tag.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BuildArtifact other)

public BuildArtifact.Builder mergeFrom(BuildArtifact other)
Parameter
NameDescription
otherBuildArtifact
Returns
TypeDescription
BuildArtifact.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BuildArtifact.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BuildArtifact.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setImage(String value)

public BuildArtifact.Builder setImage(String value)

Image name in Skaffold configuration.

string image = 3;

Parameter
NameDescription
valueString

The image to set.

Returns
TypeDescription
BuildArtifact.Builder

This builder for chaining.

setImageBytes(ByteString value)

public BuildArtifact.Builder setImageBytes(ByteString value)

Image name in Skaffold configuration.

string image = 3;

Parameter
NameDescription
valueByteString

The bytes for image to set.

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

The tag to set.

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

The bytes for tag to set.

Returns
TypeDescription
BuildArtifact.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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