public final class ModelExportOutputConfig extends com.google.protobuf.GeneratedMessageV3 implements ModelExportOutputConfigOrBuilder
Output configuration for ModelExport Action.Protobuf type
google.cloud.automl.v1.ModelExportOutputConfig| Modifier and Type | Class and Description |
|---|---|
static class |
ModelExportOutputConfig.Builder
Output configuration for ModelExport Action.
|
static class |
ModelExportOutputConfig.DestinationCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
GCS_DESTINATION_FIELD_NUMBER |
static int |
MODEL_FORMAT_FIELD_NUMBER |
static int |
PARAMS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
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
|
boolean |
equals(Object obj) |
static ModelExportOutputConfig |
getDefaultInstance() |
ModelExportOutputConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ModelExportOutputConfig.DestinationCase |
getDestinationCase() |
GcsDestination |
getGcsDestination()
Required.
|
GcsDestinationOrBuilder |
getGcsDestinationOrBuilder()
Required.
|
String |
getModelFormat()
The format in which the model must be exported.
|
com.google.protobuf.ByteString |
getModelFormatBytes()
The format in which the model must be exported.
|
Map<String,String> |
getParams()
Deprecated.
|
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
|
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
|
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
|
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
|
com.google.protobuf.Parser<ModelExportOutputConfig> |
getParserForType() |
int |
getSerializedSize() |
boolean |
hasGcsDestination()
Required.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static ModelExportOutputConfig.Builder |
newBuilder() |
static ModelExportOutputConfig.Builder |
newBuilder(ModelExportOutputConfig prototype) |
ModelExportOutputConfig.Builder |
newBuilderForType() |
protected ModelExportOutputConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ModelExportOutputConfig |
parseDelimitedFrom(InputStream input) |
static ModelExportOutputConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelExportOutputConfig |
parseFrom(byte[] data) |
static ModelExportOutputConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelExportOutputConfig |
parseFrom(ByteBuffer data) |
static ModelExportOutputConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelExportOutputConfig |
parseFrom(com.google.protobuf.ByteString data) |
static ModelExportOutputConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelExportOutputConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ModelExportOutputConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelExportOutputConfig |
parseFrom(InputStream input) |
static ModelExportOutputConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ModelExportOutputConfig> |
parser() |
ModelExportOutputConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int GCS_DESTINATION_FIELD_NUMBER
public static final int MODEL_FORMAT_FIELD_NUMBER
public static final int PARAMS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public ModelExportOutputConfig.DestinationCase getDestinationCase()
getDestinationCase in interface ModelExportOutputConfigOrBuilderpublic 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];
hasGcsDestination in interface ModelExportOutputConfigOrBuilderpublic 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];
getGcsDestination in interface ModelExportOutputConfigOrBuilderpublic 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];
getGcsDestinationOrBuilder in interface ModelExportOutputConfigOrBuilderpublic 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](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
quickstart](https://cloud.google.com/vision/automl/docs/containers-gcs-quickstart)
* core_ml - Used for iOS mobile devices.
string model_format = 4;getModelFormat in interface ModelExportOutputConfigOrBuilderpublic com.google.protobuf.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](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
quickstart](https://cloud.google.com/vision/automl/docs/containers-gcs-quickstart)
* core_ml - Used for iOS mobile devices.
string model_format = 4;getModelFormatBytes in interface ModelExportOutputConfigOrBuilderpublic int getParamsCount()
ModelExportOutputConfigOrBuilder
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;getParamsCount in interface ModelExportOutputConfigOrBuilderpublic 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;containsParams in interface ModelExportOutputConfigOrBuilder@Deprecated public Map<String,String> getParams()
getParamsMap() instead.getParams in interface ModelExportOutputConfigOrBuilderpublic 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;getParamsMap in interface ModelExportOutputConfigOrBuilderpublic 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;getParamsOrDefault in interface ModelExportOutputConfigOrBuilderpublic 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;getParamsOrThrow in interface ModelExportOutputConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ModelExportOutputConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelExportOutputConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelExportOutputConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelExportOutputConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelExportOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelExportOutputConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelExportOutputConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static ModelExportOutputConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ModelExportOutputConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ModelExportOutputConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ModelExportOutputConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ModelExportOutputConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ModelExportOutputConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ModelExportOutputConfig.Builder newBuilder()
public static ModelExportOutputConfig.Builder newBuilder(ModelExportOutputConfig prototype)
public ModelExportOutputConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ModelExportOutputConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ModelExportOutputConfig getDefaultInstance()
public static com.google.protobuf.Parser<ModelExportOutputConfig> parser()
public com.google.protobuf.Parser<ModelExportOutputConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ModelExportOutputConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.