Class UpdateArtifactRequest.Builder (3.31.0)

public static final class UpdateArtifactRequest.Builder extends GeneratedMessageV3.Builder<UpdateArtifactRequest.Builder> implements UpdateArtifactRequestOrBuilder

Request message for MetadataService.UpdateArtifact.

Protobuf type google.cloud.aiplatform.v1.UpdateArtifactRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateArtifactRequest build()
Returns
TypeDescription
UpdateArtifactRequest

buildPartial()

public UpdateArtifactRequest buildPartial()
Returns
TypeDescription
UpdateArtifactRequest

clear()

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

clearAllowMissing()

public UpdateArtifactRequest.Builder clearAllowMissing()

If set to true, and the Artifact is not found, a new Artifact is created.

bool allow_missing = 3;

Returns
TypeDescription
UpdateArtifactRequest.Builder

This builder for chaining.

clearArtifact()

public UpdateArtifactRequest.Builder clearArtifact()

Required. The Artifact containing updates. The Artifact's Artifact.name field is used to identify the Artifact to be updated. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

.google.cloud.aiplatform.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateArtifactRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateArtifactRequest.Builder clearUpdateMask()

Optional. A FieldMask indicating which fields should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UpdateArtifactRequest.Builder

clone()

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

getAllowMissing()

public boolean getAllowMissing()

If set to true, and the Artifact is not found, a new Artifact is created.

bool allow_missing = 3;

Returns
TypeDescription
boolean

The allowMissing.

getArtifact()

public Artifact getArtifact()

Required. The Artifact containing updates. The Artifact's Artifact.name field is used to identify the Artifact to be updated. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

.google.cloud.aiplatform.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Artifact

The artifact.

getArtifactBuilder()

public Artifact.Builder getArtifactBuilder()

Required. The Artifact containing updates. The Artifact's Artifact.name field is used to identify the Artifact to be updated. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

.google.cloud.aiplatform.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Artifact.Builder

getArtifactOrBuilder()

public ArtifactOrBuilder getArtifactOrBuilder()

Required. The Artifact containing updates. The Artifact's Artifact.name field is used to identify the Artifact to be updated. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

.google.cloud.aiplatform.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ArtifactOrBuilder

getDefaultInstanceForType()

public UpdateArtifactRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateArtifactRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUpdateMask()

public FieldMask getUpdateMask()

Optional. A FieldMask indicating which fields should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. A FieldMask indicating which fields should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. A FieldMask indicating which fields should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMaskOrBuilder

hasArtifact()

public boolean hasArtifact()

Required. The Artifact containing updates. The Artifact's Artifact.name field is used to identify the Artifact to be updated. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

.google.cloud.aiplatform.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the artifact field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. A FieldMask indicating which fields should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeArtifact(Artifact value)

public UpdateArtifactRequest.Builder mergeArtifact(Artifact value)

Required. The Artifact containing updates. The Artifact's Artifact.name field is used to identify the Artifact to be updated. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

.google.cloud.aiplatform.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueArtifact
Returns
TypeDescription
UpdateArtifactRequest.Builder

mergeFrom(UpdateArtifactRequest other)

public UpdateArtifactRequest.Builder mergeFrom(UpdateArtifactRequest other)
Parameter
NameDescription
otherUpdateArtifactRequest
Returns
TypeDescription
UpdateArtifactRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateArtifactRequest.Builder mergeUpdateMask(FieldMask value)

Optional. A FieldMask indicating which fields should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateArtifactRequest.Builder

setAllowMissing(boolean value)

public UpdateArtifactRequest.Builder setAllowMissing(boolean value)

If set to true, and the Artifact is not found, a new Artifact is created.

bool allow_missing = 3;

Parameter
NameDescription
valueboolean

The allowMissing to set.

Returns
TypeDescription
UpdateArtifactRequest.Builder

This builder for chaining.

setArtifact(Artifact value)

public UpdateArtifactRequest.Builder setArtifact(Artifact value)

Required. The Artifact containing updates. The Artifact's Artifact.name field is used to identify the Artifact to be updated. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

.google.cloud.aiplatform.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueArtifact
Returns
TypeDescription
UpdateArtifactRequest.Builder

setArtifact(Artifact.Builder builderForValue)

public UpdateArtifactRequest.Builder setArtifact(Artifact.Builder builderForValue)

Required. The Artifact containing updates. The Artifact's Artifact.name field is used to identify the Artifact to be updated. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}

.google.cloud.aiplatform.v1.Artifact artifact = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueArtifact.Builder
Returns
TypeDescription
UpdateArtifactRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public UpdateArtifactRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UpdateArtifactRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateArtifactRequest.Builder setUpdateMask(FieldMask value)

Optional. A FieldMask indicating which fields should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateArtifactRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateArtifactRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. A FieldMask indicating which fields should be updated.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateArtifactRequest.Builder