Class Model.ExportFormat.Builder (3.4.1)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1.Model.ExportFormat.ExportableContent>

The exportableContents to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<Integer>

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

Returns
TypeDescription
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
NameDescription
valueModel.ExportFormat.ExportableContent

The exportableContents to add.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
Model.ExportFormat.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Model.ExportFormat build()
Returns
TypeDescription
Model.ExportFormat

buildPartial()

public Model.ExportFormat buildPartial()
Returns
TypeDescription
Model.ExportFormat

clear()

public Model.ExportFormat.Builder clear()
Returns
TypeDescription
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
TypeDescription
Model.ExportFormat.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Model.ExportFormat.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Model.ExportFormat.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Model.ExportFormat.Builder clone()
Returns
TypeDescription
Model.ExportFormat.Builder
Overrides

getDefaultInstanceForType()

public Model.ExportFormat getDefaultInstanceForType()
Returns
TypeDescription
Model.ExportFormat

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for id.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Model.ExportFormat other)

public Model.ExportFormat.Builder mergeFrom(Model.ExportFormat other)
Parameter
NameDescription
otherModel.ExportFormat
Returns
TypeDescription
Model.ExportFormat.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Model.ExportFormat.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueModel.ExportFormat.ExportableContent

The exportableContents to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
Model.ExportFormat.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Model.ExportFormat.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Model.ExportFormat.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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