Class ModelServerConfigOuterClass.ModelConfig

    • Field Detail

      • MODEL_TYPE_FIELD_NUMBER

        public static final int MODEL_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MODEL_PLATFORM_FIELD_NUMBER

        public static final int MODEL_PLATFORM_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MODEL_VERSION_POLICY_FIELD_NUMBER

        public static final int MODEL_VERSION_POLICY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • VERSION_LABELS_FIELD_NUMBER

        public static final int VERSION_LABELS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LOGGING_CONFIG_FIELD_NUMBER

        public static final int LOGGING_CONFIG_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • 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
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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.
      • 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.
      • 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
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ModelServerConfigOuterClass.ModelConfig parseFrom​(java.nio.ByteBuffer data)
                                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ModelServerConfigOuterClass.ModelConfig parseFrom​(java.nio.ByteBuffer data,
                                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ModelServerConfigOuterClass.ModelConfig parseFrom​(com.google.protobuf.ByteString data)
                                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ModelServerConfigOuterClass.ModelConfig parseFrom​(com.google.protobuf.ByteString data,
                                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ModelServerConfigOuterClass.ModelConfig parseFrom​(byte[] data)
                                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ModelServerConfigOuterClass.ModelConfig parseFrom​(byte[] data,
                                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ModelServerConfigOuterClass.ModelConfig parseFrom​(java.io.InputStream input,
                                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static ModelServerConfigOuterClass.ModelConfig parseDelimitedFrom​(java.io.InputStream input,
                                                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static ModelServerConfigOuterClass.ModelConfig parseFrom​(com.google.protobuf.CodedInputStream input,
                                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

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

        protected ModelServerConfigOuterClass.ModelConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ModelServerConfigOuterClass.ModelConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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