public static final class ModelExportOutputConfig.Builder extends GeneratedMessageV3.Builder<ModelExportOutputConfig.Builder> implements ModelExportOutputConfigOrBuilder
Output configuration for ModelExport Action.
Protobuf type google.cloud.automl.v1.ModelExportOutputConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ModelExportOutputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ModelExportOutputConfig build()
buildPartial()
public ModelExportOutputConfig buildPartial()
clear()
public ModelExportOutputConfig.Builder clear()
Overrides
clearDestination()
public ModelExportOutputConfig.Builder clearDestination()
clearField(Descriptors.FieldDescriptor field)
public ModelExportOutputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearGcsDestination()
public ModelExportOutputConfig.Builder clearGcsDestination()
Required. 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.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED];
public ModelExportOutputConfig.Builder clearModelFormat()
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".
Formats description:
- 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.
- 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
quickstart
- core_ml - Used for iOS mobile devices.
string model_format = 4;
clearOneof(Descriptors.OneofDescriptor oneof)
public ModelExportOutputConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearParams()
public ModelExportOutputConfig.Builder clearParams()
clone()
public ModelExportOutputConfig.Builder clone()
Overrides
containsParams(String key)
public 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 | String
|
getDefaultInstanceForType()
public ModelExportOutputConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getDestinationCase()
public ModelExportOutputConfig.DestinationCase getDestinationCase()
getGcsDestination()
public GcsDestination getGcsDestination()
Required. 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.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED];
getGcsDestinationBuilder()
public GcsDestination.Builder getGcsDestinationBuilder()
Required. 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.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED];
getGcsDestinationOrBuilder()
public GcsDestinationOrBuilder getGcsDestinationOrBuilder()
Required. 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.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED];
public 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".
Formats description:
- 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.
- 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
quickstart
- core_ml - Used for iOS mobile devices.
string model_format = 4;
Returns |
---|
Type | Description |
String | The modelFormat.
|
public 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".
Formats description:
- 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.
- 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
quickstart
- core_ml - Used for iOS mobile devices.
string model_format = 4;
Returns |
---|
Type | Description |
ByteString | The bytes for modelFormat.
|
getMutableParams()
public Map<String,String> getMutableParams()
Use alternate mutation accessors instead.
getParams()
public Map<String,String> getParams()
getParamsCount()
public 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 |
int | |
getParamsMap()
public 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;
getParamsOrDefault(String key, String defaultValue)
public 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;
getParamsOrThrow(String key)
public 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 | String
|
hasGcsDestination()
public boolean hasGcsDestination()
Required. 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.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
---|
Type | Description |
boolean | Whether the gcsDestination field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Parameter |
---|
Name | Description |
number | int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ModelExportOutputConfig other)
public ModelExportOutputConfig.Builder mergeFrom(ModelExportOutputConfig other)
public ModelExportOutputConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ModelExportOutputConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeGcsDestination(GcsDestination value)
public ModelExportOutputConfig.Builder mergeGcsDestination(GcsDestination value)
Required. 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.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ModelExportOutputConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
putAllParams(Map<String,String> values)
public ModelExportOutputConfig.Builder putAllParams(Map<String,String> values)
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;
putParams(String key, String value)
public ModelExportOutputConfig.Builder putParams(String key, String value)
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;
removeParams(String key)
public ModelExportOutputConfig.Builder removeParams(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 | String
|
setField(Descriptors.FieldDescriptor field, Object value)
public ModelExportOutputConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setGcsDestination(GcsDestination value)
public ModelExportOutputConfig.Builder setGcsDestination(GcsDestination value)
Required. 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.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED];
setGcsDestination(GcsDestination.Builder builderForValue)
public ModelExportOutputConfig.Builder setGcsDestination(GcsDestination.Builder builderForValue)
Required. 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.v1.GcsDestination gcs_destination = 1 [(.google.api.field_behavior) = REQUIRED];
public ModelExportOutputConfig.Builder setModelFormat(String value)
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".
Formats description:
- 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.
- 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
quickstart
- core_ml - Used for iOS mobile devices.
string model_format = 4;
Parameter |
---|
Name | Description |
value | String
The modelFormat to set.
|
public ModelExportOutputConfig.Builder setModelFormatBytes(ByteString value)
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".
Formats description:
- 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.
- 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
quickstart
- core_ml - Used for iOS mobile devices.
string model_format = 4;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for modelFormat to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ModelExportOutputConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ModelExportOutputConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides