public static final class DeleteArtifactRequest.Builder extends GeneratedMessageV3.Builder<DeleteArtifactRequest.Builder> implements DeleteArtifactRequestOrBuilder
Request message for MetadataService.DeleteArtifact.
Protobuf type google.cloud.aiplatform.v1.DeleteArtifactRequest
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public DeleteArtifactRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public DeleteArtifactRequest build()
Returns
public DeleteArtifactRequest buildPartial()
Returns
public DeleteArtifactRequest.Builder clear()
Returns
Overrides
public DeleteArtifactRequest.Builder clearEtag()
Optional. The etag of the Artifact to delete.
If this is provided, it must match the server's etag. Otherwise, the
request will fail with a FAILED_PRECONDITION.
string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
public DeleteArtifactRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public DeleteArtifactRequest.Builder clearName()
Required. The resource name of the Artifact to delete.
Format:
projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
public DeleteArtifactRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public DeleteArtifactRequest.Builder clone()
Returns
Overrides
public DeleteArtifactRequest getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
Optional. The etag of the Artifact to delete.
If this is provided, it must match the server's etag. Otherwise, the
request will fail with a FAILED_PRECONDITION.
string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
String | The etag.
|
public ByteString getEtagBytes()
Optional. The etag of the Artifact to delete.
If this is provided, it must match the server's etag. Otherwise, the
request will fail with a FAILED_PRECONDITION.
string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Required. The resource name of the Artifact to delete.
Format:
projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
public ByteString getNameBytes()
Required. The resource name of the Artifact to delete.
Format:
projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public DeleteArtifactRequest.Builder mergeFrom(DeleteArtifactRequest other)
Parameter
Returns
public DeleteArtifactRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public DeleteArtifactRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final DeleteArtifactRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public DeleteArtifactRequest.Builder setEtag(String value)
Optional. The etag of the Artifact to delete.
If this is provided, it must match the server's etag. Otherwise, the
request will fail with a FAILED_PRECONDITION.
string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
value | String
The etag to set.
|
Returns
public DeleteArtifactRequest.Builder setEtagBytes(ByteString value)
Optional. The etag of the Artifact to delete.
If this is provided, it must match the server's etag. Otherwise, the
request will fail with a FAILED_PRECONDITION.
string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
value | ByteString
The bytes for etag to set.
|
Returns
public DeleteArtifactRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public DeleteArtifactRequest.Builder setName(String value)
Required. The resource name of the Artifact to delete.
Format:
projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
public DeleteArtifactRequest.Builder setNameBytes(ByteString value)
Required. The resource name of the Artifact to delete.
Format:
projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
public DeleteArtifactRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final DeleteArtifactRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides