Class Mlmodel.InferResponse.Builder

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

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

    • hasOutputTensors

      public boolean hasOutputTensors()
       the output data is provided as a set of named flat tensors
       
      .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"];
      Specified by:
      hasOutputTensors in interface Mlmodel.InferResponseOrBuilder
      Returns:
      Whether the outputTensors field is set.
    • getOutputTensors

      public Mlmodel.FlatTensors getOutputTensors()
       the output data is provided as a set of named flat tensors
       
      .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"];
      Specified by:
      getOutputTensors in interface Mlmodel.InferResponseOrBuilder
      Returns:
      The outputTensors.
    • setOutputTensors

      public Mlmodel.InferResponse.Builder setOutputTensors(Mlmodel.FlatTensors value)
       the output data is provided as a set of named flat tensors
       
      .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"];
    • setOutputTensors

      public Mlmodel.InferResponse.Builder setOutputTensors(Mlmodel.FlatTensors.Builder builderForValue)
       the output data is provided as a set of named flat tensors
       
      .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"];
    • mergeOutputTensors

      public Mlmodel.InferResponse.Builder mergeOutputTensors(Mlmodel.FlatTensors value)
       the output data is provided as a set of named flat tensors
       
      .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"];
    • clearOutputTensors

      public Mlmodel.InferResponse.Builder clearOutputTensors()
       the output data is provided as a set of named flat tensors
       
      .viam.service.mlmodel.v1.FlatTensors output_tensors = 3 [json_name = "outputTensors"];