Class Model.ExportFormat.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Model.ExportFormat.Builder>
com.google.cloud.aiplatform.v1.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.
    • 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];
      Specified by:
      getExportableContentsList in interface Model.ExportFormatOrBuilder
      Returns:
      A list containing the exportableContents.
    • 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

       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.