Package com.viam.service.mlmodel.v1
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionAdditional arguments to the methodthe input data is provided as set of named flat tensorsname of the model servicecom.google.protobuf.StructgetExtra()Additional arguments to the methodthe input data is provided as set of named flat tensorsgetName()name of the model servicecom.google.protobuf.ByteStringname of the model servicebooleanhasExtra()Additional arguments to the methodbooleanthe input data is provided as set of named flat tensorsmergeExtra(com.google.protobuf.Struct value) Additional arguments to the methodthe input data is provided as set of named flat tensorssetExtra(com.google.protobuf.Struct value) Additional arguments to the methodsetExtra(com.google.protobuf.Struct.Builder builderForValue) Additional arguments to the methodthe input data is provided as set of named flat tensorssetInputTensors(Mlmodel.FlatTensors.Builder builderForValue) the input data is provided as set of named flat tensorsname of the model servicesetNameBytes(com.google.protobuf.ByteString value) name of the model serviceMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
name of the model service
string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceMlmodel.InferRequestOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()name of the model service
string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceMlmodel.InferRequestOrBuilder- Returns:
- The bytes for name.
-
setName
name of the model service
string name = 1 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
name of the model service
string name = 1 [json_name = "name"];- Returns:
- This builder for chaining.
-
setNameBytes
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:
hasInputTensorsin interfaceMlmodel.InferRequestOrBuilder- Returns:
- Whether the inputTensors field is set.
-
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:
getInputTensorsin interfaceMlmodel.InferRequestOrBuilder- Returns:
- The inputTensors.
-
setInputTensors
the input data is provided as set of named flat tensors
.viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"]; -
setInputTensors
the input data is provided as set of named flat tensors
.viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"]; -
mergeInputTensors
the input data is provided as set of named flat tensors
.viam.service.mlmodel.v1.FlatTensors input_tensors = 3 [json_name = "inputTensors"]; -
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:
hasExtrain interfaceMlmodel.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:
getExtrain interfaceMlmodel.InferRequestOrBuilder- Returns:
- The extra.
-
setExtra
Additional arguments to the method
.google.protobuf.Struct extra = 99 [json_name = "extra"]; -
setExtra
Additional arguments to the method
.google.protobuf.Struct extra = 99 [json_name = "extra"]; -
mergeExtra
Additional arguments to the method
.google.protobuf.Struct extra = 99 [json_name = "extra"]; -
clearExtra
Additional arguments to the method
.google.protobuf.Struct extra = 99 [json_name = "extra"];
-