Class Model.ExportFormat (3.8.0)

public static final class Model.ExportFormat extends GeneratedMessageV3 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 Fields

EXPORTABLE_CONTENTS_FIELD_NUMBER

public static final int EXPORTABLE_CONTENTS_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Model.ExportFormat getDefaultInstance()
Returns
TypeDescription
Model.ExportFormat

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Model.ExportFormat.Builder newBuilder()
Returns
TypeDescription
Model.ExportFormat.Builder

newBuilder(Model.ExportFormat prototype)

public static Model.ExportFormat.Builder newBuilder(Model.ExportFormat prototype)
Parameter
NameDescription
prototypeModel.ExportFormat
Returns
TypeDescription
Model.ExportFormat.Builder

parseDelimitedFrom(InputStream input)

public static Model.ExportFormat parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Model.ExportFormat
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Model.ExportFormat parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.ExportFormat
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Model.ExportFormat parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Model.ExportFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Model.ExportFormat parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.ExportFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Model.ExportFormat parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Model.ExportFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Model.ExportFormat parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.ExportFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Model.ExportFormat parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Model.ExportFormat
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Model.ExportFormat parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.ExportFormat
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Model.ExportFormat parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Model.ExportFormat
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Model.ExportFormat parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.ExportFormat
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Model.ExportFormat parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Model.ExportFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Model.ExportFormat parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.ExportFormat
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Model.ExportFormat> parser()
Returns
TypeDescription
Parser<ExportFormat>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

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

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.

getParserForType()

public Parser<Model.ExportFormat> getParserForType()
Returns
TypeDescription
Parser<ExportFormat>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Model.ExportFormat.Builder newBuilderForType()
Returns
TypeDescription
Model.ExportFormat.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Model.ExportFormat.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Model.ExportFormat.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Model.ExportFormat.Builder toBuilder()
Returns
TypeDescription
Model.ExportFormat.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException