Class Model.ExportFormat

  • All Implemented Interfaces:
    Model.ExportFormatOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    Model

    public static final class Model.ExportFormat
    extends com.google.protobuf.GeneratedMessageV3
    implements Model.ExportFormatOrBuilder
     Represents export format supported by the Model.
     All formats export to Google Cloud Storage.
     
    Protobuf type google.cloud.aiplatform.v1beta1.Model.ExportFormat
    See Also:
    Serialized Form
    • Field Detail

      • EXPORTABLE_CONTENTS_FIELD_NUMBER

        public static final int EXPORTABLE_CONTENTS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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](https://cloud.google.com/edge-tpu/) devices.
        
         * `tf-saved-model`
         A tensorflow model in SavedModel format.
        
         * `tf-js`
         A [TensorFlow.js](https://www.tensorflow.org/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];
        Specified by:
        getId in interface Model.ExportFormatOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.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](https://cloud.google.com/edge-tpu/) devices.
        
         * `tf-saved-model`
         A tensorflow model in SavedModel format.
        
         * `tf-js`
         A [TensorFlow.js](https://www.tensorflow.org/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];
        Specified by:
        getIdBytes in interface Model.ExportFormatOrBuilder
        Returns:
        The bytes for id.
      • getExportableContentsCount

        public int getExportableContentsCount()
         Output only. The content of this Model that may be exported.
         
        repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getExportableContentsCount in interface Model.ExportFormatOrBuilder
        Returns:
        The count of exportableContents.
      • getExportableContents

        public Model.ExportFormat.ExportableContent getExportableContents​(int index)
         Output only. The content of this Model that may be exported.
         
        repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getExportableContents in interface Model.ExportFormatOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The 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.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getExportableContentsValueList in interface Model.ExportFormatOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for exportableContents.
      • getExportableContentsValue

        public int getExportableContentsValue​(int index)
         Output only. The content of this Model that may be exported.
         
        repeated .google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent exportable_contents = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getExportableContentsValue in interface Model.ExportFormatOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of exportableContents at the given index.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Model.ExportFormat parseFrom​(ByteBuffer data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Model.ExportFormat parseFrom​(ByteBuffer data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Model.ExportFormat parseFrom​(com.google.protobuf.ByteString data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Model.ExportFormat parseFrom​(com.google.protobuf.ByteString data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Model.ExportFormat parseFrom​(byte[] data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Model.ExportFormat parseFrom​(byte[] data,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Model.ExportFormat parseFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Throws:
        IOException
      • newBuilderForType

        public Model.ExportFormat.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Model.ExportFormat.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Model.ExportFormat.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Model.ExportFormat> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Model.ExportFormat getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder