public static final class ModelServerConfigOuterClass.ModelConfig extends com.google.protobuf.GeneratedMessageV3 implements ModelServerConfigOuterClass.ModelConfigOrBuilder
Common configuration for loading a model being served.Protobuf type
tensorflow.serving.ModelConfig| Modifier and Type | Class and Description |
|---|---|
static class |
ModelServerConfigOuterClass.ModelConfig.Builder
Common configuration for loading a model being served.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BASE_PATH_FIELD_NUMBER |
static int |
LOGGING_CONFIG_FIELD_NUMBER |
static int |
MODEL_PLATFORM_FIELD_NUMBER |
static int |
MODEL_TYPE_FIELD_NUMBER |
static int |
MODEL_VERSION_POLICY_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
VERSION_LABELS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsVersionLabels(java.lang.String key)
String labels to associate with versions of the model, allowing inference
queries to refer to versions by label instead of number.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBasePath()
Base path to the model, excluding the version directory.
|
com.google.protobuf.ByteString |
getBasePathBytes()
Base path to the model, excluding the version directory.
|
static ModelServerConfigOuterClass.ModelConfig |
getDefaultInstance() |
ModelServerConfigOuterClass.ModelConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
LoggingConfigOuterClass.LoggingConfig |
getLoggingConfig()
Configures logging requests and responses, to the model.
|
LoggingConfigOuterClass.LoggingConfigOrBuilder |
getLoggingConfigOrBuilder()
Configures logging requests and responses, to the model.
|
java.lang.String |
getModelPlatform()
Type of model (e.g.
|
com.google.protobuf.ByteString |
getModelPlatformBytes()
Type of model (e.g.
|
ModelServerConfigOuterClass.ModelType |
getModelType()
Deprecated.
|
int |
getModelTypeValue()
Deprecated.
|
FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicy |
getModelVersionPolicy()
Version policy for the model indicating which version(s) of the model to
load and make available for serving simultaneously.
|
FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicyOrBuilder |
getModelVersionPolicyOrBuilder()
Version policy for the model indicating which version(s) of the model to
load and make available for serving simultaneously.
|
java.lang.String |
getName()
Name of the model.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of the model.
|
com.google.protobuf.Parser<ModelServerConfigOuterClass.ModelConfig> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
java.util.Map<java.lang.String,java.lang.Long> |
getVersionLabels()
Deprecated.
|
int |
getVersionLabelsCount()
String labels to associate with versions of the model, allowing inference
queries to refer to versions by label instead of number.
|
java.util.Map<java.lang.String,java.lang.Long> |
getVersionLabelsMap()
String labels to associate with versions of the model, allowing inference
queries to refer to versions by label instead of number.
|
long |
getVersionLabelsOrDefault(java.lang.String key,
long defaultValue)
String labels to associate with versions of the model, allowing inference
queries to refer to versions by label instead of number.
|
long |
getVersionLabelsOrThrow(java.lang.String key)
String labels to associate with versions of the model, allowing inference
queries to refer to versions by label instead of number.
|
int |
hashCode() |
boolean |
hasLoggingConfig()
Configures logging requests and responses, to the model.
|
boolean |
hasModelVersionPolicy()
Version policy for the model indicating which version(s) of the model to
load and make available for serving simultaneously.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static ModelServerConfigOuterClass.ModelConfig.Builder |
newBuilder() |
static ModelServerConfigOuterClass.ModelConfig.Builder |
newBuilder(ModelServerConfigOuterClass.ModelConfig prototype) |
ModelServerConfigOuterClass.ModelConfig.Builder |
newBuilderForType() |
protected ModelServerConfigOuterClass.ModelConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ModelServerConfigOuterClass.ModelConfig |
parseDelimitedFrom(java.io.InputStream input) |
static ModelServerConfigOuterClass.ModelConfig |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelServerConfigOuterClass.ModelConfig |
parseFrom(byte[] data) |
static ModelServerConfigOuterClass.ModelConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelServerConfigOuterClass.ModelConfig |
parseFrom(java.nio.ByteBuffer data) |
static ModelServerConfigOuterClass.ModelConfig |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelServerConfigOuterClass.ModelConfig |
parseFrom(com.google.protobuf.ByteString data) |
static ModelServerConfigOuterClass.ModelConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelServerConfigOuterClass.ModelConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ModelServerConfigOuterClass.ModelConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ModelServerConfigOuterClass.ModelConfig |
parseFrom(java.io.InputStream input) |
static ModelServerConfigOuterClass.ModelConfig |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ModelServerConfigOuterClass.ModelConfig> |
parser() |
ModelServerConfigOuterClass.ModelConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, 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 NAME_FIELD_NUMBER
public static final int BASE_PATH_FIELD_NUMBER
public static final int MODEL_TYPE_FIELD_NUMBER
public static final int MODEL_PLATFORM_FIELD_NUMBER
public static final int MODEL_VERSION_POLICY_FIELD_NUMBER
public static final int VERSION_LABELS_FIELD_NUMBER
public static final int LOGGING_CONFIG_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getName()
Name of the model.
string name = 1;getName in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of the model.
string name = 1;getNameBytes in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic java.lang.String getBasePath()
Base path to the model, excluding the version directory. E.g> for a model at /foo/bar/my_model/123, where 123 is the version, the base path is /foo/bar/my_model. (This can be changed once a model is in serving, *if* the underlying data remains the same. Otherwise there are no guarantees about whether the old or new data will be used for model versions currently loaded.)
string base_path = 2;getBasePath in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic com.google.protobuf.ByteString getBasePathBytes()
Base path to the model, excluding the version directory. E.g> for a model at /foo/bar/my_model/123, where 123 is the version, the base path is /foo/bar/my_model. (This can be changed once a model is in serving, *if* the underlying data remains the same. Otherwise there are no guarantees about whether the old or new data will be used for model versions currently loaded.)
string base_path = 2;getBasePathBytes in interface ModelServerConfigOuterClass.ModelConfigOrBuilder@Deprecated public int getModelTypeValue()
Type of model. TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
.tensorflow.serving.ModelType model_type = 3 [deprecated = true];getModelTypeValue in interface ModelServerConfigOuterClass.ModelConfigOrBuilder@Deprecated public ModelServerConfigOuterClass.ModelType getModelType()
Type of model. TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
.tensorflow.serving.ModelType model_type = 3 [deprecated = true];getModelType in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic java.lang.String getModelPlatform()
Type of model (e.g. "tensorflow"). (This cannot be changed once a model is in serving.)
string model_platform = 4;getModelPlatform in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic com.google.protobuf.ByteString getModelPlatformBytes()
Type of model (e.g. "tensorflow"). (This cannot be changed once a model is in serving.)
string model_platform = 4;getModelPlatformBytes in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic boolean hasModelVersionPolicy()
Version policy for the model indicating which version(s) of the model to load and make available for serving simultaneously. The default option is to serve only the latest version of the model. (This can be changed once a model is in serving.)
.tensorflow.serving.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;hasModelVersionPolicy in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicy getModelVersionPolicy()
Version policy for the model indicating which version(s) of the model to load and make available for serving simultaneously. The default option is to serve only the latest version of the model. (This can be changed once a model is in serving.)
.tensorflow.serving.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;getModelVersionPolicy in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicyOrBuilder getModelVersionPolicyOrBuilder()
Version policy for the model indicating which version(s) of the model to load and make available for serving simultaneously. The default option is to serve only the latest version of the model. (This can be changed once a model is in serving.)
.tensorflow.serving.FileSystemStoragePathSourceConfig.ServableVersionPolicy model_version_policy = 7;getModelVersionPolicyOrBuilder in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic int getVersionLabelsCount()
ModelServerConfigOuterClass.ModelConfigOrBuilderString labels to associate with versions of the model, allowing inference queries to refer to versions by label instead of number. Multiple labels can map to the same version, but not vice-versa. An envisioned use-case for these labels is canarying tentative versions. For example, one can assign labels "stable" and "canary" to two specific versions. Perhaps initially "stable" is assigned to version 0 and "canary" to version 1. Once version 1 passes canary, one can shift the "stable" label to refer to version 1 (at that point both labels map to the same version -- version 1 -- which is fine). Later once version 2 is ready to canary one can move the "canary" label to version 2. And so on.
map<string, int64> version_labels = 8;getVersionLabelsCount in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic boolean containsVersionLabels(java.lang.String key)
String labels to associate with versions of the model, allowing inference queries to refer to versions by label instead of number. Multiple labels can map to the same version, but not vice-versa. An envisioned use-case for these labels is canarying tentative versions. For example, one can assign labels "stable" and "canary" to two specific versions. Perhaps initially "stable" is assigned to version 0 and "canary" to version 1. Once version 1 passes canary, one can shift the "stable" label to refer to version 1 (at that point both labels map to the same version -- version 1 -- which is fine). Later once version 2 is ready to canary one can move the "canary" label to version 2. And so on.
map<string, int64> version_labels = 8;containsVersionLabels in interface ModelServerConfigOuterClass.ModelConfigOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.Long> getVersionLabels()
getVersionLabelsMap() instead.getVersionLabels in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic java.util.Map<java.lang.String,java.lang.Long> getVersionLabelsMap()
String labels to associate with versions of the model, allowing inference queries to refer to versions by label instead of number. Multiple labels can map to the same version, but not vice-versa. An envisioned use-case for these labels is canarying tentative versions. For example, one can assign labels "stable" and "canary" to two specific versions. Perhaps initially "stable" is assigned to version 0 and "canary" to version 1. Once version 1 passes canary, one can shift the "stable" label to refer to version 1 (at that point both labels map to the same version -- version 1 -- which is fine). Later once version 2 is ready to canary one can move the "canary" label to version 2. And so on.
map<string, int64> version_labels = 8;getVersionLabelsMap in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic long getVersionLabelsOrDefault(java.lang.String key,
long defaultValue)
String labels to associate with versions of the model, allowing inference queries to refer to versions by label instead of number. Multiple labels can map to the same version, but not vice-versa. An envisioned use-case for these labels is canarying tentative versions. For example, one can assign labels "stable" and "canary" to two specific versions. Perhaps initially "stable" is assigned to version 0 and "canary" to version 1. Once version 1 passes canary, one can shift the "stable" label to refer to version 1 (at that point both labels map to the same version -- version 1 -- which is fine). Later once version 2 is ready to canary one can move the "canary" label to version 2. And so on.
map<string, int64> version_labels = 8;getVersionLabelsOrDefault in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic long getVersionLabelsOrThrow(java.lang.String key)
String labels to associate with versions of the model, allowing inference queries to refer to versions by label instead of number. Multiple labels can map to the same version, but not vice-versa. An envisioned use-case for these labels is canarying tentative versions. For example, one can assign labels "stable" and "canary" to two specific versions. Perhaps initially "stable" is assigned to version 0 and "canary" to version 1. Once version 1 passes canary, one can shift the "stable" label to refer to version 1 (at that point both labels map to the same version -- version 1 -- which is fine). Later once version 2 is ready to canary one can move the "canary" label to version 2. And so on.
map<string, int64> version_labels = 8;getVersionLabelsOrThrow in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic boolean hasLoggingConfig()
Configures logging requests and responses, to the model. (This can be changed once a model is in serving.)
.tensorflow.serving.LoggingConfig logging_config = 6;hasLoggingConfig in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic LoggingConfigOuterClass.LoggingConfig getLoggingConfig()
Configures logging requests and responses, to the model. (This can be changed once a model is in serving.)
.tensorflow.serving.LoggingConfig logging_config = 6;getLoggingConfig in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic LoggingConfigOuterClass.LoggingConfigOrBuilder getLoggingConfigOrBuilder()
Configures logging requests and responses, to the model. (This can be changed once a model is in serving.)
.tensorflow.serving.LoggingConfig logging_config = 6;getLoggingConfigOrBuilder in interface ModelServerConfigOuterClass.ModelConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.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 ModelServerConfigOuterClass.ModelConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelServerConfigOuterClass.ModelConfig parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelServerConfigOuterClass.ModelConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelServerConfigOuterClass.ModelConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelServerConfigOuterClass.ModelConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelServerConfigOuterClass.ModelConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ModelServerConfigOuterClass.ModelConfig parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ModelServerConfigOuterClass.ModelConfig parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ModelServerConfigOuterClass.ModelConfig parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ModelServerConfigOuterClass.ModelConfig parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ModelServerConfigOuterClass.ModelConfig parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ModelServerConfigOuterClass.ModelConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ModelServerConfigOuterClass.ModelConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ModelServerConfigOuterClass.ModelConfig.Builder newBuilder()
public static ModelServerConfigOuterClass.ModelConfig.Builder newBuilder(ModelServerConfigOuterClass.ModelConfig prototype)
public ModelServerConfigOuterClass.ModelConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ModelServerConfigOuterClass.ModelConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ModelServerConfigOuterClass.ModelConfig getDefaultInstance()
public static com.google.protobuf.Parser<ModelServerConfigOuterClass.ModelConfig> parser()
public com.google.protobuf.Parser<ModelServerConfigOuterClass.ModelConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ModelServerConfigOuterClass.ModelConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder