Class ExportPublisherModelRequest.Builder (3.64.0)

public static final class ExportPublisherModelRequest.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ExportPublisherModelRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExportPublisherModelRequest.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ExportPublisherModelRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ExportPublisherModelRequest.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public ExportPublisherModelRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ExportPublisherModelRequest.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ExportPublisherModelRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public ExportPublisherModelRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ExportPublisherModelRequest.Builder
Overrides

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.

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

public ExportPublisherModelRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ExportPublisherModelRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ExportPublisherModelRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ExportPublisherModelRequest.Builder
Overrides