# Interface ModelExportOutputConfigOrBuilder (2.91.0)

2.91.0 (latest) 2.88.0 2.87.0 2.85.0 2.83.0 2.82.0 2.81.0 2.80.0 2.78.0 2.76.0 2.75.0 2.74.0 2.73.0 2.72.0 2.70.0 2.68.0 2.67.0 2.64.0 2.63.0 2.62.0 2.60.0 2.59.0 2.58.0 2.57.0 2.56.0 2.55.0 2.54.0 2.53.0 2.52.0 2.51.0 2.49.0 2.48.0 2.47.0 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.39.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.18 2.2.3 2.1.23

    public interface ModelExportOutputConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsParams(String key)

    public abstract boolean containsParams(String key)

Additional model-type and format specific parameters describing the
requirements for the to be exported model files, any string must be up to
25000 characters long.

- For `docker` format: `cpu_architecture` - (string) "x86_64" (default). `gpu_architecture` - (string) "none" (default), "nvidia".

`map<string, string> params = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getDestinationCase()

    public abstract ModelExportOutputConfig.DestinationCase getDestinationCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-automl/latest/com.google.cloud.automl.v1beta1.ModelExportOutputConfig.DestinationCase` |   |

### getGcrDestination()

    public abstract GcrDestination getGcrDestination()

The GCR location where model image is to be pushed to. This location
may only be set for the following model formats:
"docker".

The model image will be created under the given URI.

`.google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-automl/latest/com.google.cloud.automl.v1beta1.GcrDestination` | The gcrDestination. |

### getGcrDestinationOrBuilder()

    public abstract GcrDestinationOrBuilder getGcrDestinationOrBuilder()

The GCR location where model image is to be pushed to. This location
may only be set for the following model formats:
"docker".

The model image will be created under the given URI.

`.google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-automl/latest/com.google.cloud.automl.v1beta1.GcrDestinationOrBuilder` |   |

### getGcsDestination()

    public abstract GcsDestination getGcsDestination()

The Google Cloud Storage location where the model is to be written to.
This location may only be set for the following model formats:
"tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".

Under the directory given as the destination a new one with name
"model-export-\<model-display-name\>-\<timestamp-of-export-call\>",
where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
will be created. Inside the model and any of its supporting files
will be written.

`.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-automl/latest/com.google.cloud.automl.v1beta1.GcsDestination` | The gcsDestination. |

### getGcsDestinationOrBuilder()

    public abstract GcsDestinationOrBuilder getGcsDestinationOrBuilder()

The Google Cloud Storage location where the model is to be written to.
This location may only be set for the following model formats:
"tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".

Under the directory given as the destination a new one with name
"model-export-\<model-display-name\>-\<timestamp-of-export-call\>",
where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
will be created. Inside the model and any of its supporting files
will be written.

`.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-automl/latest/com.google.cloud.automl.v1beta1.GcsDestinationOrBuilder` |   |

### getModelFormat()

    public abstract String getModelFormat()

The format in which the model must be exported. The available, and default,
formats depend on the problem and model type (if given problem and type
combination doesn't have a format listed, it means its models are not
exportable):

- For Image Classification mobile-low-latency-1, mobile-versatile-1,
  mobile-high-accuracy-1:
  "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js",
  "docker".

- For Image Classification mobile-core-ml-low-latency-1,
  mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
  "core_ml" (default).

- For Image Object Detection mobile-low-latency-1, mobile-versatile-1,
  mobile-high-accuracy-1:
  "tflite", "tf_saved_model", "tf_js".

- For Video Classification cloud,
  "tf_saved_model".

- For Video Object Tracking cloud,
  "tf_saved_model".

- For Video Object Tracking mobile-versatile-1:
  "tflite", "edgetpu_tflite", "tf_saved_model", "docker".

- For Video Object Tracking mobile-coral-versatile-1:
  "tflite", "edgetpu_tflite", "docker".

- For Video Object Tracking mobile-coral-low-latency-1:
  "tflite", "edgetpu_tflite", "docker".

- For Video Object Tracking mobile-jetson-versatile-1:
  "tf_saved_model", "docker".

- For Tables:
  "docker".

  Formats description:
- 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.
- docker - Used for Docker containers. Use the params field to customize
  the container. The container is verified to work correctly on
  ubuntu 16.04 operating system. See more at
  [containers](https://docs.cloud.google.com/java/docs/reference/google-cloud-automl/latest/
  //cloud.google.com/vision/automl/docs/containers-gcs-quickstart)

  [](https://docs.cloud.google.com/java/docs/reference/google-cloud-automl/latest/
  //cloud.google.com/vision/automl/docs/containers-gcs-quickstart)

  [quickstart](https://docs.cloud.google.com/java/docs/reference/google-cloud-automl/latest/
  //cloud.google.com/vision/automl/docs/containers-gcs-quickstart)
- core_ml - Used for iOS mobile devices.

`string model_format = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The modelFormat. |

### getModelFormatBytes()

    public abstract ByteString getModelFormatBytes()

The format in which the model must be exported. The available, and default,
formats depend on the problem and model type (if given problem and type
combination doesn't have a format listed, it means its models are not
exportable):

- For Image Classification mobile-low-latency-1, mobile-versatile-1,
  mobile-high-accuracy-1:
  "tflite" (default), "edgetpu_tflite", "tf_saved_model", "tf_js",
  "docker".

- For Image Classification mobile-core-ml-low-latency-1,
  mobile-core-ml-versatile-1, mobile-core-ml-high-accuracy-1:
  "core_ml" (default).

- For Image Object Detection mobile-low-latency-1, mobile-versatile-1,
  mobile-high-accuracy-1:
  "tflite", "tf_saved_model", "tf_js".

- For Video Classification cloud,
  "tf_saved_model".

- For Video Object Tracking cloud,
  "tf_saved_model".

- For Video Object Tracking mobile-versatile-1:
  "tflite", "edgetpu_tflite", "tf_saved_model", "docker".

- For Video Object Tracking mobile-coral-versatile-1:
  "tflite", "edgetpu_tflite", "docker".

- For Video Object Tracking mobile-coral-low-latency-1:
  "tflite", "edgetpu_tflite", "docker".

- For Video Object Tracking mobile-jetson-versatile-1:
  "tf_saved_model", "docker".

- For Tables:
  "docker".

  Formats description:
- 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.
- docker - Used for Docker containers. Use the params field to customize
  the container. The container is verified to work correctly on
  ubuntu 16.04 operating system. See more at
  [containers](https://docs.cloud.google.com/java/docs/reference/google-cloud-automl/latest/
  //cloud.google.com/vision/automl/docs/containers-gcs-quickstart)

  [](https://docs.cloud.google.com/java/docs/reference/google-cloud-automl/latest/
  //cloud.google.com/vision/automl/docs/containers-gcs-quickstart)

  [quickstart](https://docs.cloud.google.com/java/docs/reference/google-cloud-automl/latest/
  //cloud.google.com/vision/automl/docs/containers-gcs-quickstart)
- core_ml - Used for iOS mobile devices.

`string model_format = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for modelFormat. |

### getParams() (deprecated)

    public abstract Map<String,String> getParams()

Use [#getParamsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-automl/latest/com.google.cloud.automl.v1beta1.ModelExportOutputConfigOrBuilder#com_google_cloud_automl_v1beta1_ModelExportOutputConfigOrBuilder_getParamsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getParamsCount()

    public abstract int getParamsCount()

Additional model-type and format specific parameters describing the
requirements for the to be exported model files, any string must be up to
25000 characters long.

- For `docker` format: `cpu_architecture` - (string) "x86_64" (default). `gpu_architecture` - (string) "none" (default), "nvidia".

`map<string, string> params = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getParamsMap()

    public abstract Map<String,String> getParamsMap()

Additional model-type and format specific parameters describing the
requirements for the to be exported model files, any string must be up to
25000 characters long.

- For `docker` format: `cpu_architecture` - (string) "x86_64" (default). `gpu_architecture` - (string) "none" (default), "nvidia".

`map<string, string> params = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getParamsOrDefault(String key, String defaultValue)

    public abstract String getParamsOrDefault(String key, String defaultValue)

Additional model-type and format specific parameters describing the
requirements for the to be exported model files, any string must be up to
25000 characters long.

- For `docker` format: `cpu_architecture` - (string) "x86_64" (default). `gpu_architecture` - (string) "none" (default), "nvidia".

`map<string, string> params = 2;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getParamsOrThrow(String key)

    public abstract String getParamsOrThrow(String key)

Additional model-type and format specific parameters describing the
requirements for the to be exported model files, any string must be up to
25000 characters long.

- For `docker` format: `cpu_architecture` - (string) "x86_64" (default). `gpu_architecture` - (string) "none" (default), "nvidia".

`map<string, string> params = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### hasGcrDestination()

    public abstract boolean hasGcrDestination()

The GCR location where model image is to be pushed to. This location
may only be set for the following model formats:
"docker".

The model image will be created under the given URI.

`.google.cloud.automl.v1beta1.GcrDestination gcr_destination = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the gcrDestination field is set. |

### hasGcsDestination()

    public abstract boolean hasGcsDestination()

The Google Cloud Storage location where the model is to be written to.
This location may only be set for the following model formats:
"tflite", "edgetpu_tflite", "tf_saved_model", "tf_js", "core_ml".

Under the directory given as the destination a new one with name
"model-export-\<model-display-name\>-\<timestamp-of-export-call\>",
where timestamp is in YYYY-MM-DDThh:mm:ss.sssZ ISO-8601 format,
will be created. Inside the model and any of its supporting files
will be written.

`.google.cloud.automl.v1beta1.GcsDestination gcs_destination = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the gcsDestination field is set. |