Class KfpArtifact.Builder (1.82.0)

public static final class KfpArtifact.Builder extends GeneratedMessage.Builder<KfpArtifact.Builder> implements KfpArtifactOrBuilder

A detailed representation of a KFP artifact.

Protobuf type google.devtools.artifactregistry.v1.KfpArtifact

Static Methods

getDescriptor()

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

Methods

build()

public KfpArtifact build()
Returns
Type Description
KfpArtifact

buildPartial()

public KfpArtifact buildPartial()
Returns
Type Description
KfpArtifact

clear()

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

clearName()

public KfpArtifact.Builder clearName()

Output only. Resource name of the KFP artifact. Since users don't directly interact with this resource, the name will be derived from the associated version. For example, when version = ".../versions/sha256:abcdef...", the name will be ".../kfpArtifacts/sha256:abcdef...".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KfpArtifact.Builder

This builder for chaining.

clearVersion()

public KfpArtifact.Builder clearVersion()

The version associated with the KFP artifact. Must follow the Semantic Versioning standard.

string version = 2;

Returns
Type Description
KfpArtifact.Builder

This builder for chaining.

getDefaultInstanceForType()

public KfpArtifact getDefaultInstanceForType()
Returns
Type Description
KfpArtifact

getDescriptorForType()

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

getName()

public String getName()

Output only. Resource name of the KFP artifact. Since users don't directly interact with this resource, the name will be derived from the associated version. For example, when version = ".../versions/sha256:abcdef...", the name will be ".../kfpArtifacts/sha256:abcdef...".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Resource name of the KFP artifact. Since users don't directly interact with this resource, the name will be derived from the associated version. For example, when version = ".../versions/sha256:abcdef...", the name will be ".../kfpArtifacts/sha256:abcdef...".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getVersion()

public String getVersion()

The version associated with the KFP artifact. Must follow the Semantic Versioning standard.

string version = 2;

Returns
Type Description
String

The version.

getVersionBytes()

public ByteString getVersionBytes()

The version associated with the KFP artifact. Must follow the Semantic Versioning standard.

string version = 2;

Returns
Type Description
ByteString

The bytes for version.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KfpArtifact other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public KfpArtifact.Builder setName(String value)

Output only. Resource name of the KFP artifact. Since users don't directly interact with this resource, the name will be derived from the associated version. For example, when version = ".../versions/sha256:abcdef...", the name will be ".../kfpArtifacts/sha256:abcdef...".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
KfpArtifact.Builder

This builder for chaining.

setNameBytes(ByteString value)

public KfpArtifact.Builder setNameBytes(ByteString value)

Output only. Resource name of the KFP artifact. Since users don't directly interact with this resource, the name will be derived from the associated version. For example, when version = ".../versions/sha256:abcdef...", the name will be ".../kfpArtifacts/sha256:abcdef...".

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
KfpArtifact.Builder

This builder for chaining.

setVersion(String value)

public KfpArtifact.Builder setVersion(String value)

The version associated with the KFP artifact. Must follow the Semantic Versioning standard.

string version = 2;

Parameter
Name Description
value String

The version to set.

Returns
Type Description
KfpArtifact.Builder

This builder for chaining.

setVersionBytes(ByteString value)

public KfpArtifact.Builder setVersionBytes(ByteString value)

The version associated with the KFP artifact. Must follow the Semantic Versioning standard.

string version = 2;

Parameter
Name Description
value ByteString

The bytes for version to set.

Returns
Type Description
KfpArtifact.Builder

This builder for chaining.