Package tensorflow.serving
Class ModelServerConfigOuterClass.ModelConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
tensorflow.serving.ModelServerConfigOuterClass.ModelConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable,ModelServerConfigOuterClass.ModelConfigOrBuilder
- Enclosing class:
- ModelServerConfigOuterClass.ModelConfig
public static final class ModelServerConfigOuterClass.ModelConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder> implements ModelServerConfigOuterClass.ModelConfigOrBuilder
Common configuration for loading a model being served.Protobuf type
tensorflow.serving.ModelConfig-
Method Summary
Modifier and Type Method Description ModelServerConfigOuterClass.ModelConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ModelServerConfigOuterClass.ModelConfigbuild()ModelServerConfigOuterClass.ModelConfigbuildPartial()ModelServerConfigOuterClass.ModelConfig.Builderclear()ModelServerConfigOuterClass.ModelConfig.BuilderclearBasePath()Base path to the model, excluding the version directory.ModelServerConfigOuterClass.ModelConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ModelServerConfigOuterClass.ModelConfig.BuilderclearLoggingConfig()Configures logging requests and responses, to the model.ModelServerConfigOuterClass.ModelConfig.BuilderclearModelPlatform()Type of model (e.g.ModelServerConfigOuterClass.ModelConfig.BuilderclearModelType()Deprecated.ModelServerConfigOuterClass.ModelConfig.BuilderclearModelVersionPolicy()Version policy for the model indicating which version(s) of the model to load and make available for serving simultaneously.ModelServerConfigOuterClass.ModelConfig.BuilderclearName()Name of the model.ModelServerConfigOuterClass.ModelConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ModelServerConfigOuterClass.ModelConfig.BuilderclearVersionLabels()ModelServerConfigOuterClass.ModelConfig.Builderclone()booleancontainsVersionLabels(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.java.lang.StringgetBasePath()Base path to the model, excluding the version directory.com.google.protobuf.ByteStringgetBasePathBytes()Base path to the model, excluding the version directory.ModelServerConfigOuterClass.ModelConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()LoggingConfigOuterClass.LoggingConfiggetLoggingConfig()Configures logging requests and responses, to the model.LoggingConfigOuterClass.LoggingConfig.BuildergetLoggingConfigBuilder()Configures logging requests and responses, to the model.LoggingConfigOuterClass.LoggingConfigOrBuildergetLoggingConfigOrBuilder()Configures logging requests and responses, to the model.java.lang.StringgetModelPlatform()Type of model (e.g.com.google.protobuf.ByteStringgetModelPlatformBytes()Type of model (e.g.ModelServerConfigOuterClass.ModelTypegetModelType()Deprecated.intgetModelTypeValue()Deprecated.FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicygetModelVersionPolicy()Version policy for the model indicating which version(s) of the model to load and make available for serving simultaneously.FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicy.BuildergetModelVersionPolicyBuilder()Version policy for the model indicating which version(s) of the model to load and make available for serving simultaneously.FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicyOrBuildergetModelVersionPolicyOrBuilder()Version policy for the model indicating which version(s) of the model to load and make available for serving simultaneously.java.util.Map<java.lang.String,java.lang.Long>getMutableVersionLabels()Deprecated.java.lang.StringgetName()Name of the model.com.google.protobuf.ByteStringgetNameBytes()Name of the model.java.util.Map<java.lang.String,java.lang.Long>getVersionLabels()Deprecated.intgetVersionLabelsCount()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.longgetVersionLabelsOrDefault(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.longgetVersionLabelsOrThrow(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.booleanhasLoggingConfig()Configures logging requests and responses, to the model.booleanhasModelVersionPolicy()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.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()ModelServerConfigOuterClass.ModelConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ModelServerConfigOuterClass.ModelConfig.BuildermergeFrom(com.google.protobuf.Message other)ModelServerConfigOuterClass.ModelConfig.BuildermergeFrom(ModelServerConfigOuterClass.ModelConfig other)ModelServerConfigOuterClass.ModelConfig.BuildermergeLoggingConfig(LoggingConfigOuterClass.LoggingConfig value)Configures logging requests and responses, to the model.ModelServerConfigOuterClass.ModelConfig.BuildermergeModelVersionPolicy(FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicy value)Version policy for the model indicating which version(s) of the model to load and make available for serving simultaneously.ModelServerConfigOuterClass.ModelConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ModelServerConfigOuterClass.ModelConfig.BuilderputAllVersionLabels(java.util.Map<java.lang.String,java.lang.Long> values)String labels to associate with versions of the model, allowing inference queries to refer to versions by label instead of number.ModelServerConfigOuterClass.ModelConfig.BuilderputVersionLabels(java.lang.String key, long value)String labels to associate with versions of the model, allowing inference queries to refer to versions by label instead of number.ModelServerConfigOuterClass.ModelConfig.BuilderremoveVersionLabels(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.ModelServerConfigOuterClass.ModelConfig.BuildersetBasePath(java.lang.String value)Base path to the model, excluding the version directory.ModelServerConfigOuterClass.ModelConfig.BuildersetBasePathBytes(com.google.protobuf.ByteString value)Base path to the model, excluding the version directory.ModelServerConfigOuterClass.ModelConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ModelServerConfigOuterClass.ModelConfig.BuildersetLoggingConfig(LoggingConfigOuterClass.LoggingConfig value)Configures logging requests and responses, to the model.ModelServerConfigOuterClass.ModelConfig.BuildersetLoggingConfig(LoggingConfigOuterClass.LoggingConfig.Builder builderForValue)Configures logging requests and responses, to the model.ModelServerConfigOuterClass.ModelConfig.BuildersetModelPlatform(java.lang.String value)Type of model (e.g.ModelServerConfigOuterClass.ModelConfig.BuildersetModelPlatformBytes(com.google.protobuf.ByteString value)Type of model (e.g.ModelServerConfigOuterClass.ModelConfig.BuildersetModelType(ModelServerConfigOuterClass.ModelType value)Deprecated.ModelServerConfigOuterClass.ModelConfig.BuildersetModelTypeValue(int value)Deprecated.ModelServerConfigOuterClass.ModelConfig.BuildersetModelVersionPolicy(FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicy value)Version policy for the model indicating which version(s) of the model to load and make available for serving simultaneously.ModelServerConfigOuterClass.ModelConfig.BuildersetModelVersionPolicy(FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicy.Builder builderForValue)Version policy for the model indicating which version(s) of the model to load and make available for serving simultaneously.ModelServerConfigOuterClass.ModelConfig.BuildersetName(java.lang.String value)Name of the model.ModelServerConfigOuterClass.ModelConfig.BuildersetNameBytes(com.google.protobuf.ByteString value)Name of the model.ModelServerConfigOuterClass.ModelConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)ModelServerConfigOuterClass.ModelConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
setField
public ModelServerConfigOuterClass.ModelConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
clearField
public ModelServerConfigOuterClass.ModelConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
clearOneof
public ModelServerConfigOuterClass.ModelConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
setRepeatedField
public ModelServerConfigOuterClass.ModelConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
addRepeatedField
public ModelServerConfigOuterClass.ModelConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
mergeFrom
public ModelServerConfigOuterClass.ModelConfig.Builder mergeFrom(com.google.protobuf.Message other)- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
mergeFrom
public ModelServerConfigOuterClass.ModelConfig.Builder mergeFrom(ModelServerConfigOuterClass.ModelConfig other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
mergeFrom
public ModelServerConfigOuterClass.ModelConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>- Throws:
java.io.IOException
-
getName
public java.lang.String getName()Name of the model.
string name = 1;- Specified by:
getNamein interfaceModelServerConfigOuterClass.ModelConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Name of the model.
string name = 1;- Specified by:
getNameBytesin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder- Returns:
- The bytes for name.
-
setName
Name of the model.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Name of the model.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public ModelServerConfigOuterClass.ModelConfig.Builder setNameBytes(com.google.protobuf.ByteString value)Name of the model.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getBasePath
public 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;- Specified by:
getBasePathin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder- Returns:
- The basePath.
-
getBasePathBytes
public 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;- Specified by:
getBasePathBytesin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder- Returns:
- The bytes for basePath.
-
setBasePath
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;- Parameters:
value- The basePath to set.- Returns:
- This builder for chaining.
-
clearBasePath
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;- Returns:
- This builder for chaining.
-
setBasePathBytes
public ModelServerConfigOuterClass.ModelConfig.Builder setBasePathBytes(com.google.protobuf.ByteString value)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;- Parameters:
value- The bytes for basePath to set.- Returns:
- This builder for chaining.
-
getModelTypeValue
@Deprecated public int getModelTypeValue()Deprecated.Type of model. TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
.tensorflow.serving.ModelType model_type = 3 [deprecated = true];- Specified by:
getModelTypeValuein interfaceModelServerConfigOuterClass.ModelConfigOrBuilder- Returns:
- The enum numeric value on the wire for modelType.
-
setModelTypeValue
Deprecated.Type of model. TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
.tensorflow.serving.ModelType model_type = 3 [deprecated = true];- Parameters:
value- The enum numeric value on the wire for modelType to set.- Returns:
- This builder for chaining.
-
getModelType
Deprecated.Type of model. TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
.tensorflow.serving.ModelType model_type = 3 [deprecated = true];- Specified by:
getModelTypein interfaceModelServerConfigOuterClass.ModelConfigOrBuilder- Returns:
- The modelType.
-
setModelType
@Deprecated public ModelServerConfigOuterClass.ModelConfig.Builder setModelType(ModelServerConfigOuterClass.ModelType value)Deprecated.Type of model. TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
.tensorflow.serving.ModelType model_type = 3 [deprecated = true];- Parameters:
value- The modelType to set.- Returns:
- This builder for chaining.
-
clearModelType
Deprecated.Type of model. TODO(b/31336131): DEPRECATED. Please use 'model_platform' instead.
.tensorflow.serving.ModelType model_type = 3 [deprecated = true];- Returns:
- This builder for chaining.
-
getModelPlatform
public java.lang.String getModelPlatform()Type of model (e.g. "tensorflow"). (This cannot be changed once a model is in serving.)
string model_platform = 4;- Specified by:
getModelPlatformin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder- Returns:
- The modelPlatform.
-
getModelPlatformBytes
public 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;- Specified by:
getModelPlatformBytesin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder- Returns:
- The bytes for modelPlatform.
-
setModelPlatform
Type of model (e.g. "tensorflow"). (This cannot be changed once a model is in serving.)
string model_platform = 4;- Parameters:
value- The modelPlatform to set.- Returns:
- This builder for chaining.
-
clearModelPlatform
Type of model (e.g. "tensorflow"). (This cannot be changed once a model is in serving.)
string model_platform = 4;- Returns:
- This builder for chaining.
-
setModelPlatformBytes
public ModelServerConfigOuterClass.ModelConfig.Builder setModelPlatformBytes(com.google.protobuf.ByteString value)Type of model (e.g. "tensorflow"). (This cannot be changed once a model is in serving.)
string model_platform = 4;- Parameters:
value- The bytes for modelPlatform to set.- Returns:
- This builder for chaining.
-
hasModelVersionPolicy
public 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;- Specified by:
hasModelVersionPolicyin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder- Returns:
- Whether the modelVersionPolicy field is set.
-
getModelVersionPolicy
public 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;- Specified by:
getModelVersionPolicyin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder- Returns:
- The modelVersionPolicy.
-
setModelVersionPolicy
public ModelServerConfigOuterClass.ModelConfig.Builder setModelVersionPolicy(FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicy value)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; -
setModelVersionPolicy
public ModelServerConfigOuterClass.ModelConfig.Builder setModelVersionPolicy(FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicy.Builder builderForValue)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; -
mergeModelVersionPolicy
public ModelServerConfigOuterClass.ModelConfig.Builder mergeModelVersionPolicy(FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicy value)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; -
clearModelVersionPolicy
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; -
getModelVersionPolicyBuilder
public FileSystemStoragePathSource.FileSystemStoragePathSourceConfig.ServableVersionPolicy.Builder getModelVersionPolicyBuilder()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
public 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;- Specified by:
getModelVersionPolicyOrBuilderin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder
-
getVersionLabelsCount
public int getVersionLabelsCount()Description copied from interface: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;- Specified by:
getVersionLabelsCountin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder
-
containsVersionLabels
public 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;- Specified by:
containsVersionLabelsin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder
-
getVersionLabels
@Deprecated public java.util.Map<java.lang.String,java.lang.Long> getVersionLabels()Deprecated.UsegetVersionLabelsMap()instead.- Specified by:
getVersionLabelsin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder
-
getVersionLabelsMap
public 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;- Specified by:
getVersionLabelsMapin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder
-
getVersionLabelsOrDefault
public 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;- Specified by:
getVersionLabelsOrDefaultin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder
-
getVersionLabelsOrThrow
public 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;- Specified by:
getVersionLabelsOrThrowin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder
-
clearVersionLabels
-
removeVersionLabels
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; -
getMutableVersionLabels
@Deprecated public java.util.Map<java.lang.String,java.lang.Long> getMutableVersionLabels()Deprecated.Use alternate mutation accessors instead. -
putVersionLabels
public ModelServerConfigOuterClass.ModelConfig.Builder putVersionLabels(java.lang.String key, long value)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; -
putAllVersionLabels
public ModelServerConfigOuterClass.ModelConfig.Builder putAllVersionLabels(java.util.Map<java.lang.String,java.lang.Long> values)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; -
hasLoggingConfig
public 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;- Specified by:
hasLoggingConfigin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder- Returns:
- Whether the loggingConfig field is set.
-
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;- Specified by:
getLoggingConfigin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder- Returns:
- The loggingConfig.
-
setLoggingConfig
public ModelServerConfigOuterClass.ModelConfig.Builder setLoggingConfig(LoggingConfigOuterClass.LoggingConfig value)Configures logging requests and responses, to the model. (This can be changed once a model is in serving.)
.tensorflow.serving.LoggingConfig logging_config = 6; -
setLoggingConfig
public ModelServerConfigOuterClass.ModelConfig.Builder setLoggingConfig(LoggingConfigOuterClass.LoggingConfig.Builder builderForValue)Configures logging requests and responses, to the model. (This can be changed once a model is in serving.)
.tensorflow.serving.LoggingConfig logging_config = 6; -
mergeLoggingConfig
public ModelServerConfigOuterClass.ModelConfig.Builder mergeLoggingConfig(LoggingConfigOuterClass.LoggingConfig value)Configures logging requests and responses, to the model. (This can be changed once a model is in serving.)
.tensorflow.serving.LoggingConfig logging_config = 6; -
clearLoggingConfig
Configures logging requests and responses, to the model. (This can be changed once a model is in serving.)
.tensorflow.serving.LoggingConfig logging_config = 6; -
getLoggingConfigBuilder
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
Configures logging requests and responses, to the model. (This can be changed once a model is in serving.)
.tensorflow.serving.LoggingConfig logging_config = 6;- Specified by:
getLoggingConfigOrBuilderin interfaceModelServerConfigOuterClass.ModelConfigOrBuilder
-
setUnknownFields
public final ModelServerConfigOuterClass.ModelConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-
mergeUnknownFields
public final ModelServerConfigOuterClass.ModelConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
-