Class Model.ExportFormat.Builder

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

    public static final class Model.ExportFormat.Builder
    extends com.google.protobuf.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
    • Method Detail

      • 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.Builder<Model.ExportFormat.Builder>
      • clear

        public Model.ExportFormat.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Model.ExportFormat.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Model.ExportFormat.Builder>
      • getDefaultInstanceForType

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

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

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

        public Model.ExportFormat.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Model.ExportFormat.Builder>
      • setField

        public Model.ExportFormat.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Model.ExportFormat.Builder>
      • clearField

        public Model.ExportFormat.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Model.ExportFormat.Builder>
      • clearOneof

        public Model.ExportFormat.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Model.ExportFormat.Builder>
      • setRepeatedField

        public Model.ExportFormat.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           int index,
                                                           Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Model.ExportFormat.Builder>
      • addRepeatedField

        public Model.ExportFormat.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Model.ExportFormat.Builder>
      • mergeFrom

        public Model.ExportFormat.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Model.ExportFormat.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Model.ExportFormat.Builder>
      • mergeFrom

        public Model.ExportFormat.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                             throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Model.ExportFormat.Builder>
        Throws:
        IOException
      • 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.
      • setId

        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](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];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • 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](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];
        Returns:
        This builder for chaining.
      • setIdBytes

        public Model.ExportFormat.Builder setIdBytes​(com.google.protobuf.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](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];
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • 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];
        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.v1.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.
      • setExportableContents

        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:
        index - The index to set the value at.
        value - The exportableContents to set.
        Returns:
        This builder for chaining.
      • addExportableContents

        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];
        Parameters:
        value - The exportableContents to add.
        Returns:
        This builder for chaining.
      • addAllExportableContents

        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];
        Parameters:
        values - The exportableContents to add.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • 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];
        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.v1.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.
      • setExportableContentsValue

        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:
        index - The index to set the value at.
        value - The enum numeric value on the wire for exportableContents to set.
        Returns:
        This builder for chaining.
      • addExportableContentsValue

        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];
        Parameters:
        value - The enum numeric value on the wire for exportableContents to add.
        Returns:
        This builder for chaining.
      • addAllExportableContentsValue

        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];
        Parameters:
        values - The enum numeric values on the wire for exportableContents to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Model.ExportFormat.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Model.ExportFormat.Builder>
      • mergeUnknownFields

        public final Model.ExportFormat.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Model.ExportFormat.Builder>