Class ExportPublisherModelRequest.Builder (3.84.0)

public static final class ExportPublisherModelRequest.Builder extends GeneratedMessage.Builder<ExportPublisherModelRequest.Builder> implements ExportPublisherModelRequestOrBuilder

Request message for ModelGardenService.ExportPublisherModel.

Protobuf type google.cloud.aiplatform.v1beta1.ExportPublisherModelRequest

Static Methods

getDescriptor()

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

Methods

build()

public ExportPublisherModelRequest build()
Returns
Type Description
ExportPublisherModelRequest

buildPartial()

public ExportPublisherModelRequest buildPartial()
Returns
Type Description
ExportPublisherModelRequest

clear()

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

clearDestination()

public ExportPublisherModelRequest.Builder clearDestination()

Required. The target where we are exporting the model weights to

.google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExportPublisherModelRequest.Builder

clearName()

public ExportPublisherModelRequest.Builder clearName()

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model}@{version_id}, or publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001

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

Returns
Type Description
ExportPublisherModelRequest.Builder

This builder for chaining.

clearParent()

public ExportPublisherModelRequest.Builder clearParent()

Required. The Location to export the model weights from Format: projects/{project}/locations/{location}

string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ExportPublisherModelRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public ExportPublisherModelRequest getDefaultInstanceForType()
Returns
Type Description
ExportPublisherModelRequest

getDescriptorForType()

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

getDestination()

public GcsDestination getDestination()

Required. The target where we are exporting the model weights to

.google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GcsDestination

The destination.

getDestinationBuilder()

public GcsDestination.Builder getDestinationBuilder()

Required. The target where we are exporting the model weights to

.google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GcsDestination.Builder

getDestinationOrBuilder()

public GcsDestinationOrBuilder getDestinationOrBuilder()

Required. The target where we are exporting the model weights to

.google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GcsDestinationOrBuilder

getName()

public String getName()

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model}@{version_id}, or publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model}@{version_id}, or publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001

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

Returns
Type Description
ByteString

The bytes for name.

getParent()

public String getParent()

Required. The Location to export the model weights from Format: projects/{project}/locations/{location}

string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The Location to export the model weights from Format: projects/{project}/locations/{location}

string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasDestination()

public boolean hasDestination()

Required. The target where we are exporting the model weights to

.google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the destination field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDestination(GcsDestination value)

public ExportPublisherModelRequest.Builder mergeDestination(GcsDestination value)

Required. The target where we are exporting the model weights to

.google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GcsDestination
Returns
Type Description
ExportPublisherModelRequest.Builder

mergeFrom(ExportPublisherModelRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDestination(GcsDestination value)

public ExportPublisherModelRequest.Builder setDestination(GcsDestination value)

Required. The target where we are exporting the model weights to

.google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GcsDestination
Returns
Type Description
ExportPublisherModelRequest.Builder

setDestination(GcsDestination.Builder builderForValue)

public ExportPublisherModelRequest.Builder setDestination(GcsDestination.Builder builderForValue)

Required. The target where we are exporting the model weights to

.google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue GcsDestination.Builder
Returns
Type Description
ExportPublisherModelRequest.Builder

setName(String value)

public ExportPublisherModelRequest.Builder setName(String value)

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model}@{version_id}, or publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ExportPublisherModelRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExportPublisherModelRequest.Builder setNameBytes(ByteString value)

Required. The name of the PublisherModel resource. Format: publishers/{publisher}/models/{publisher_model}@{version_id}, or publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ExportPublisherModelRequest.Builder

This builder for chaining.

setParent(String value)

public ExportPublisherModelRequest.Builder setParent(String value)

Required. The Location to export the model weights from Format: projects/{project}/locations/{location}

string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ExportPublisherModelRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ExportPublisherModelRequest.Builder setParentBytes(ByteString value)

Required. The Location to export the model weights from Format: projects/{project}/locations/{location}

string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ExportPublisherModelRequest.Builder

This builder for chaining.