Class Mlmodel.InferRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.InferRequest,Mlmodel.InferRequest.Builder>
com.viam.service.mlmodel.v1.Mlmodel.InferRequest.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Mlmodel.InferRequestOrBuilder, Cloneable
Enclosing class:
Mlmodel.InferRequest

public static final class Mlmodel.InferRequest.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.InferRequest,Mlmodel.InferRequest.Builder> implements Mlmodel.InferRequestOrBuilder
Protobuf type viam.service.mlmodel.v1.InferRequest
  • Method Details

    • getName

      public String getName()
       name of the model service
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Mlmodel.InferRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       name of the model service
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface Mlmodel.InferRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Mlmodel.InferRequest.Builder setName(String value)
       name of the model service
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Mlmodel.InferRequest.Builder clearName()
       name of the model service
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Mlmodel.InferRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       name of the model service
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasInputTensors

      public boolean hasInputTensors()
       the input data is provided as set of named flat tensors
       
      .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"];
      Specified by:
      hasInputTensors in interface Mlmodel.InferRequestOrBuilder
      Returns:
      Whether the inputTensors field is set.
    • getInputTensors

      public Mlmodel.FlatTensors getInputTensors()
       the input data is provided as set of named flat tensors
       
      .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"];
      Specified by:
      getInputTensors in interface Mlmodel.InferRequestOrBuilder
      Returns:
      The inputTensors.
    • setInputTensors

      public Mlmodel.InferRequest.Builder setInputTensors(Mlmodel.FlatTensors value)
       the input data is provided as set of named flat tensors
       
      .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"];
    • setInputTensors

      public Mlmodel.InferRequest.Builder setInputTensors(Mlmodel.FlatTensors.Builder builderForValue)
       the input data is provided as set of named flat tensors
       
      .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"];
    • mergeInputTensors

      public Mlmodel.InferRequest.Builder mergeInputTensors(Mlmodel.FlatTensors value)
       the input data is provided as set of named flat tensors
       
      .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"];
    • clearInputTensors

      public Mlmodel.InferRequest.Builder clearInputTensors()
       the input data is provided as set of named flat tensors
       
      .viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"];
    • hasExtra

      public boolean hasExtra()
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
      Specified by:
      hasExtra in interface Mlmodel.InferRequestOrBuilder
      Returns:
      Whether the extra field is set.
    • getExtra

      public com.google.protobuf.Struct getExtra()
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
      Specified by:
      getExtra in interface Mlmodel.InferRequestOrBuilder
      Returns:
      The extra.
    • setExtra

      public Mlmodel.InferRequest.Builder setExtra(com.google.protobuf.Struct value)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • setExtra

      public Mlmodel.InferRequest.Builder setExtra(com.google.protobuf.Struct.Builder builderForValue)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • mergeExtra

      public Mlmodel.InferRequest.Builder mergeExtra(com.google.protobuf.Struct value)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • clearExtra

      public Mlmodel.InferRequest.Builder clearExtra()
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];