Class Inference.InferenceTask.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Inference.InferenceTask.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.Builder>
tensorflow.serving.Inference.InferenceTask.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Inference.InferenceTaskOrBuilder
Enclosing class:
Inference.InferenceTask

public static final class Inference.InferenceTask.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.Builder> implements Inference.InferenceTaskOrBuilder
 Inference request such as classification, regression, etc...
 
Protobuf type tensorflow.serving.InferenceTask
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.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<Inference.InferenceTask.Builder>
    • getDefaultInstanceForType

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

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

      public Inference.InferenceTask buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.Builder>
    • setField

      public Inference.InferenceTask.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.Builder>
    • clearField

      public Inference.InferenceTask.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.Builder>
    • clearOneof

      public Inference.InferenceTask.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.Builder>
    • setRepeatedField

      public Inference.InferenceTask.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.Builder>
    • addRepeatedField

      public Inference.InferenceTask.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.Builder>
    • mergeFrom

      public Inference.InferenceTask.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Inference.InferenceTask.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.Builder>
    • mergeFrom

      public Inference.InferenceTask.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<Inference.InferenceTask.Builder>
      Throws:
      IOException
    • hasModelSpec

      public boolean hasModelSpec()
       Model Specification. If version is not specified, will use the latest
       (numerical) version.
       All ModelSpecs in a MultiInferenceRequest must access the same model name.
       
      .tensorflow.serving.ModelSpec model_spec = 1;
      Specified by:
      hasModelSpec in interface Inference.InferenceTaskOrBuilder
      Returns:
      Whether the modelSpec field is set.
    • getModelSpec

      public Model.ModelSpec getModelSpec()
       Model Specification. If version is not specified, will use the latest
       (numerical) version.
       All ModelSpecs in a MultiInferenceRequest must access the same model name.
       
      .tensorflow.serving.ModelSpec model_spec = 1;
      Specified by:
      getModelSpec in interface Inference.InferenceTaskOrBuilder
      Returns:
      The modelSpec.
    • setModelSpec

      public Inference.InferenceTask.Builder setModelSpec(Model.ModelSpec value)
       Model Specification. If version is not specified, will use the latest
       (numerical) version.
       All ModelSpecs in a MultiInferenceRequest must access the same model name.
       
      .tensorflow.serving.ModelSpec model_spec = 1;
    • setModelSpec

      public Inference.InferenceTask.Builder setModelSpec(Model.ModelSpec.Builder builderForValue)
       Model Specification. If version is not specified, will use the latest
       (numerical) version.
       All ModelSpecs in a MultiInferenceRequest must access the same model name.
       
      .tensorflow.serving.ModelSpec model_spec = 1;
    • mergeModelSpec

      public Inference.InferenceTask.Builder mergeModelSpec(Model.ModelSpec value)
       Model Specification. If version is not specified, will use the latest
       (numerical) version.
       All ModelSpecs in a MultiInferenceRequest must access the same model name.
       
      .tensorflow.serving.ModelSpec model_spec = 1;
    • clearModelSpec

      public Inference.InferenceTask.Builder clearModelSpec()
       Model Specification. If version is not specified, will use the latest
       (numerical) version.
       All ModelSpecs in a MultiInferenceRequest must access the same model name.
       
      .tensorflow.serving.ModelSpec model_spec = 1;
    • getModelSpecBuilder

      public Model.ModelSpec.Builder getModelSpecBuilder()
       Model Specification. If version is not specified, will use the latest
       (numerical) version.
       All ModelSpecs in a MultiInferenceRequest must access the same model name.
       
      .tensorflow.serving.ModelSpec model_spec = 1;
    • getModelSpecOrBuilder

      public Model.ModelSpecOrBuilder getModelSpecOrBuilder()
       Model Specification. If version is not specified, will use the latest
       (numerical) version.
       All ModelSpecs in a MultiInferenceRequest must access the same model name.
       
      .tensorflow.serving.ModelSpec model_spec = 1;
      Specified by:
      getModelSpecOrBuilder in interface Inference.InferenceTaskOrBuilder
    • getMethodName

      public String getMethodName()
       Signature's method_name. Should be one of the method names defined in
       third_party/tensorflow/python/saved_model/signature_constants.py.
       e.g. "tensorflow/serving/classify".
       
      string method_name = 2;
      Specified by:
      getMethodName in interface Inference.InferenceTaskOrBuilder
      Returns:
      The methodName.
    • getMethodNameBytes

      public com.google.protobuf.ByteString getMethodNameBytes()
       Signature's method_name. Should be one of the method names defined in
       third_party/tensorflow/python/saved_model/signature_constants.py.
       e.g. "tensorflow/serving/classify".
       
      string method_name = 2;
      Specified by:
      getMethodNameBytes in interface Inference.InferenceTaskOrBuilder
      Returns:
      The bytes for methodName.
    • setMethodName

      public Inference.InferenceTask.Builder setMethodName(String value)
       Signature's method_name. Should be one of the method names defined in
       third_party/tensorflow/python/saved_model/signature_constants.py.
       e.g. "tensorflow/serving/classify".
       
      string method_name = 2;
      Parameters:
      value - The methodName to set.
      Returns:
      This builder for chaining.
    • clearMethodName

      public Inference.InferenceTask.Builder clearMethodName()
       Signature's method_name. Should be one of the method names defined in
       third_party/tensorflow/python/saved_model/signature_constants.py.
       e.g. "tensorflow/serving/classify".
       
      string method_name = 2;
      Returns:
      This builder for chaining.
    • setMethodNameBytes

      public Inference.InferenceTask.Builder setMethodNameBytes(com.google.protobuf.ByteString value)
       Signature's method_name. Should be one of the method names defined in
       third_party/tensorflow/python/saved_model/signature_constants.py.
       e.g. "tensorflow/serving/classify".
       
      string method_name = 2;
      Parameters:
      value - The bytes for methodName to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Inference.InferenceTask.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.Builder>
    • mergeUnknownFields

      public final Inference.InferenceTask.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Inference.InferenceTask.Builder>