Class ModelServerConfigOuterClass.ModelConfig.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
      • getDefaultInstanceForType

        public ModelServerConfigOuterClass.ModelConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ModelServerConfigOuterClass.ModelConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ModelServerConfigOuterClass.ModelConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ModelServerConfigOuterClass.ModelConfig.Builder>
        Throws:
        java.io.IOException
      • 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:
        getBasePath in interface ModelServerConfigOuterClass.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:
        getBasePathBytes in interface ModelServerConfigOuterClass.ModelConfigOrBuilder
        Returns:
        The bytes for basePath.
      • setBasePath

        public ModelServerConfigOuterClass.ModelConfig.Builder setBasePath​(java.lang.String 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 basePath to set.
        Returns:
        This builder for chaining.
      • clearBasePath

        public ModelServerConfigOuterClass.ModelConfig.Builder 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:
        getModelTypeValue in interface ModelServerConfigOuterClass.ModelConfigOrBuilder
        Returns:
        The enum numeric value on the wire for modelType.
      • setModelTypeValue

        @Deprecated
        public ModelServerConfigOuterClass.ModelConfig.Builder setModelTypeValue​(int 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 enum numeric value on the wire for modelType to set.
        Returns:
        This builder for chaining.
      • clearModelType

        @Deprecated
        public ModelServerConfigOuterClass.ModelConfig.Builder 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.
      • setModelPlatform

        public ModelServerConfigOuterClass.ModelConfig.Builder setModelPlatform​(java.lang.String value)
         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

        public ModelServerConfigOuterClass.ModelConfig.Builder 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:
        hasModelVersionPolicy in interface ModelServerConfigOuterClass.ModelConfigOrBuilder
        Returns:
        Whether the modelVersionPolicy field is set.
      • clearModelVersionPolicy

        public ModelServerConfigOuterClass.ModelConfig.Builder 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;
      • getVersionLabelsCount

        public int getVersionLabelsCount()
        Description copied from interface: ModelServerConfigOuterClass.ModelConfigOrBuilder
         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:
        getVersionLabelsCount in interface ModelServerConfigOuterClass.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:
        containsVersionLabels in interface ModelServerConfigOuterClass.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:
        getVersionLabelsMap in interface ModelServerConfigOuterClass.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:
        getVersionLabelsOrDefault in interface ModelServerConfigOuterClass.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:
        getVersionLabelsOrThrow in interface ModelServerConfigOuterClass.ModelConfigOrBuilder
      • removeVersionLabels

        public ModelServerConfigOuterClass.ModelConfig.Builder removeVersionLabels​(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;
      • 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:
        hasLoggingConfig in interface ModelServerConfigOuterClass.ModelConfigOrBuilder
        Returns:
        Whether the loggingConfig field is set.
      • clearLoggingConfig

        public ModelServerConfigOuterClass.ModelConfig.Builder 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

        public LoggingConfigOuterClass.LoggingConfig.Builder 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;