Class Model.ExportFormat.Builder (3.43.0)

public static final class Model.ExportFormat.Builder extends GeneratedMessageV3.Builder<Model.ExportFormat.Builder> implements Model.ExportFormatOrBuilder

Represents export format supported by the Model. All formats export to Google Cloud Storage.

Protobuf type google.cloud.aiplatform.v1.Model.ExportFormat

Static Methods

getDescriptor()

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

Methods

addAllExportableContents(Iterable<? extends Model.ExportFormat.ExportableContent> values)

public Model.ExportFormat.Builder addAllExportableContents(Iterable<? extends Model.ExportFormat.ExportableContent> values)

Output only. The content of this Model that may be exported.

repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent>

The exportableContents to add.

Returns
Type Description
Model.ExportFormat.Builder

This builder for chaining.

addAllExportableContentsValue(Iterable<Integer> values)

public Model.ExportFormat.Builder addAllExportableContentsValue(Iterable<Integer> values)

Output only. The content of this Model that may be exported.

repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for exportableContents to add.

Returns
Type Description
Model.ExportFormat.Builder

This builder for chaining.

addExportableContents(Model.ExportFormat.ExportableContent value)

public Model.ExportFormat.Builder addExportableContents(Model.ExportFormat.ExportableContent value)

Output only. The content of this Model that may be exported.

repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Model.ExportFormat.ExportableContent

The exportableContents to add.

Returns
Type Description
Model.ExportFormat.Builder

This builder for chaining.

addExportableContentsValue(int value)

public Model.ExportFormat.Builder addExportableContentsValue(int value)

Output only. The content of this Model that may be exported.

repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for exportableContents to add.

Returns
Type Description
Model.ExportFormat.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Model.ExportFormat build()
Returns
Type Description
Model.ExportFormat

buildPartial()

public Model.ExportFormat buildPartial()
Returns
Type Description
Model.ExportFormat

clear()

public Model.ExportFormat.Builder clear()
Returns
Type Description
Model.ExportFormat.Builder
Overrides

clearExportableContents()

public Model.ExportFormat.Builder clearExportableContents()

Output only. The content of this Model that may be exported.

repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Model.ExportFormat.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public Model.ExportFormat.Builder clearId()

Output only. The ID of the export format. The possible format IDs are:

  • tflite Used for Android mobile devices.

  • edgetpu-tflite Used for Edge TPU devices.

  • tf-saved-model A tensorflow model in SavedModel format.

  • tf-js A TensorFlow.js model that can be used in the browser and in Node.js using JavaScript.

  • core-ml Used for iOS mobile devices.

  • custom-trained A Model that was uploaded or trained by custom code.

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

Returns
Type Description
Model.ExportFormat.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Model.ExportFormat.Builder clone()
Returns
Type Description
Model.ExportFormat.Builder
Overrides

getDefaultInstanceForType()

public Model.ExportFormat getDefaultInstanceForType()
Returns
Type Description
Model.ExportFormat

getDescriptorForType()

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

getExportableContents(int index)

public Model.ExportFormat.ExportableContent getExportableContents(int index)

Output only. The content of this Model that may be exported.

repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
Model.ExportFormat.ExportableContent

The exportableContents at the given index.

getExportableContentsCount()

public int getExportableContentsCount()

Output only. The content of this Model that may be exported.

repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of exportableContents.

getExportableContentsList()

public List<Model.ExportFormat.ExportableContent> getExportableContentsList()

Output only. The content of this Model that may be exported.

repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ExportableContent>

A list containing the exportableContents.

getExportableContentsValue(int index)

public int getExportableContentsValue(int index)

Output only. The content of this Model that may be exported.

repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of exportableContents at the given index.

getExportableContentsValueList()

public List<Integer> getExportableContentsValueList()

Output only. The content of this Model that may be exported.

repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for exportableContents.

getId()

public String getId()

Output only. The ID of the export format. The possible format IDs are:

  • tflite Used for Android mobile devices.

  • edgetpu-tflite Used for Edge TPU devices.

  • tf-saved-model A tensorflow model in SavedModel format.

  • tf-js A TensorFlow.js model that can be used in the browser and in Node.js using JavaScript.

  • core-ml Used for iOS mobile devices.

  • custom-trained A Model that was uploaded or trained by custom code.

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

Returns
Type Description
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. The ID of the export format. The possible format IDs are:

  • tflite Used for Android mobile devices.

  • edgetpu-tflite Used for Edge TPU devices.

  • tf-saved-model A tensorflow model in SavedModel format.

  • tf-js A TensorFlow.js model that can be used in the browser and in Node.js using JavaScript.

  • core-ml Used for iOS mobile devices.

  • custom-trained A Model that was uploaded or trained by custom code.

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

Returns
Type Description
ByteString

The bytes for id.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Model.ExportFormat other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Model.ExportFormat.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Model.ExportFormat.Builder
Overrides

setExportableContents(int index, Model.ExportFormat.ExportableContent value)

public Model.ExportFormat.Builder setExportableContents(int index, Model.ExportFormat.ExportableContent value)

Output only. The content of this Model that may be exported.

repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value Model.ExportFormat.ExportableContent

The exportableContents to set.

Returns
Type Description
Model.ExportFormat.Builder

This builder for chaining.

setExportableContentsValue(int index, int value)

public Model.ExportFormat.Builder setExportableContentsValue(int index, int value)

Output only. The content of this Model that may be exported.

repeated .google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for exportableContents to set.

Returns
Type Description
Model.ExportFormat.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public Model.ExportFormat.Builder setId(String value)

Output only. The ID of the export format. The possible format IDs are:

  • tflite Used for Android mobile devices.

  • edgetpu-tflite Used for Edge TPU devices.

  • tf-saved-model A tensorflow model in SavedModel format.

  • tf-js A TensorFlow.js model that can be used in the browser and in Node.js using JavaScript.

  • core-ml Used for iOS mobile devices.

  • custom-trained A Model that was uploaded or trained by custom code.

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

Parameter
Name Description
value String

The id to set.

Returns
Type Description
Model.ExportFormat.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Model.ExportFormat.Builder setIdBytes(ByteString value)

Output only. The ID of the export format. The possible format IDs are:

  • tflite Used for Android mobile devices.

  • edgetpu-tflite Used for Edge TPU devices.

  • tf-saved-model A tensorflow model in SavedModel format.

  • tf-js A TensorFlow.js model that can be used in the browser and in Node.js using JavaScript.

  • core-ml Used for iOS mobile devices.

  • custom-trained A Model that was uploaded or trained by custom code.

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

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
Model.ExportFormat.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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