Package com.viam.service.mlmodel.v1
Class Mlmodel.Metadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.Metadata,Mlmodel.Metadata.Builder>
com.viam.service.mlmodel.v1.Mlmodel.Metadata.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Mlmodel.MetadataOrBuilder
,Cloneable
- Enclosing class:
- Mlmodel.Metadata
public static final class Mlmodel.Metadata.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.Metadata,Mlmodel.Metadata.Builder>
implements Mlmodel.MetadataOrBuilder
Protobuf type
viam.service.mlmodel.v1.Metadata
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionaddAllInputInfo
(Iterable<? extends Mlmodel.TensorInfo> values) the necessary input arrays/tensors for an inference, order mattersaddAllOutputInfo
(Iterable<? extends Mlmodel.TensorInfo> values) the output arrays/tensors of the model, order mattersaddInputInfo
(int index, Mlmodel.TensorInfo value) the necessary input arrays/tensors for an inference, order mattersaddInputInfo
(int index, Mlmodel.TensorInfo.Builder builderForValue) the necessary input arrays/tensors for an inference, order mattersaddInputInfo
(Mlmodel.TensorInfo value) the necessary input arrays/tensors for an inference, order mattersaddInputInfo
(Mlmodel.TensorInfo.Builder builderForValue) the necessary input arrays/tensors for an inference, order mattersaddOutputInfo
(int index, Mlmodel.TensorInfo value) the output arrays/tensors of the model, order mattersaddOutputInfo
(int index, Mlmodel.TensorInfo.Builder builderForValue) the output arrays/tensors of the model, order mattersaddOutputInfo
(Mlmodel.TensorInfo value) the output arrays/tensors of the model, order mattersaddOutputInfo
(Mlmodel.TensorInfo.Builder builderForValue) the output arrays/tensors of the model, order mattersdescription of the modelthe necessary input arrays/tensors for an inference, order mattersname of the modelthe output arrays/tensors of the model, order matterstype of model e.g.description of the modelcom.google.protobuf.ByteString
description of the modelgetInputInfo
(int index) the necessary input arrays/tensors for an inference, order mattersint
the necessary input arrays/tensors for an inference, order mattersthe necessary input arrays/tensors for an inference, order mattersgetName()
name of the modelcom.google.protobuf.ByteString
name of the modelgetOutputInfo
(int index) the output arrays/tensors of the model, order mattersint
the output arrays/tensors of the model, order mattersthe output arrays/tensors of the model, order mattersgetType()
type of model e.g.com.google.protobuf.ByteString
type of model e.g.removeInputInfo
(int index) the necessary input arrays/tensors for an inference, order mattersremoveOutputInfo
(int index) the output arrays/tensors of the model, order matterssetDescription
(String value) description of the modelsetDescriptionBytes
(com.google.protobuf.ByteString value) description of the modelsetInputInfo
(int index, Mlmodel.TensorInfo value) the necessary input arrays/tensors for an inference, order matterssetInputInfo
(int index, Mlmodel.TensorInfo.Builder builderForValue) the necessary input arrays/tensors for an inference, order mattersname of the modelsetNameBytes
(com.google.protobuf.ByteString value) name of the modelsetOutputInfo
(int index, Mlmodel.TensorInfo value) the output arrays/tensors of the model, order matterssetOutputInfo
(int index, Mlmodel.TensorInfo.Builder builderForValue) the output arrays/tensors of the model, order matterstype of model e.g.setTypeBytes
(com.google.protobuf.ByteString value) type of model e.g.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
name of the model
string name = 1 [json_name = "name"];
- Specified by:
getName
in interfaceMlmodel.MetadataOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()name of the model
string name = 1 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceMlmodel.MetadataOrBuilder
- Returns:
- The bytes for name.
-
setName
name of the model
string name = 1 [json_name = "name"];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
name of the model
string name = 1 [json_name = "name"];
- Returns:
- This builder for chaining.
-
setNameBytes
name of the model
string name = 1 [json_name = "name"];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getType
type of model e.g. object_detector, text_classifier
string type = 2 [json_name = "type"];
- Specified by:
getType
in interfaceMlmodel.MetadataOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()type of model e.g. object_detector, text_classifier
string type = 2 [json_name = "type"];
- Specified by:
getTypeBytes
in interfaceMlmodel.MetadataOrBuilder
- Returns:
- The bytes for type.
-
setType
type of model e.g. object_detector, text_classifier
string type = 2 [json_name = "type"];
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
type of model e.g. object_detector, text_classifier
string type = 2 [json_name = "type"];
- Returns:
- This builder for chaining.
-
setTypeBytes
type of model e.g. object_detector, text_classifier
string type = 2 [json_name = "type"];
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
getDescription
description of the model
string description = 3 [json_name = "description"];
- Specified by:
getDescription
in interfaceMlmodel.MetadataOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()description of the model
string description = 3 [json_name = "description"];
- Specified by:
getDescriptionBytes
in interfaceMlmodel.MetadataOrBuilder
- Returns:
- The bytes for description.
-
setDescription
description of the model
string description = 3 [json_name = "description"];
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
description of the model
string description = 3 [json_name = "description"];
- Returns:
- This builder for chaining.
-
setDescriptionBytes
description of the model
string description = 3 [json_name = "description"];
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getInputInfoList
the necessary input arrays/tensors for an inference, order matters
repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
- Specified by:
getInputInfoList
in interfaceMlmodel.MetadataOrBuilder
-
getInputInfoCount
public int getInputInfoCount()the necessary input arrays/tensors for an inference, order matters
repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
- Specified by:
getInputInfoCount
in interfaceMlmodel.MetadataOrBuilder
-
getInputInfo
the necessary input arrays/tensors for an inference, order matters
repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
- Specified by:
getInputInfo
in interfaceMlmodel.MetadataOrBuilder
-
setInputInfo
the necessary input arrays/tensors for an inference, order matters
repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
-
setInputInfo
the necessary input arrays/tensors for an inference, order matters
repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
-
addInputInfo
the necessary input arrays/tensors for an inference, order matters
repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
-
addInputInfo
the necessary input arrays/tensors for an inference, order matters
repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
-
addInputInfo
the necessary input arrays/tensors for an inference, order matters
repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
-
addInputInfo
the necessary input arrays/tensors for an inference, order matters
repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
-
addAllInputInfo
the necessary input arrays/tensors for an inference, order matters
repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
-
clearInputInfo
the necessary input arrays/tensors for an inference, order matters
repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
-
removeInputInfo
the necessary input arrays/tensors for an inference, order matters
repeated .viam.service.mlmodel.v1.TensorInfo input_info = 4 [json_name = "inputInfo"];
-
getOutputInfoList
the output arrays/tensors of the model, order matters
repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
- Specified by:
getOutputInfoList
in interfaceMlmodel.MetadataOrBuilder
-
getOutputInfoCount
public int getOutputInfoCount()the output arrays/tensors of the model, order matters
repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
- Specified by:
getOutputInfoCount
in interfaceMlmodel.MetadataOrBuilder
-
getOutputInfo
the output arrays/tensors of the model, order matters
repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
- Specified by:
getOutputInfo
in interfaceMlmodel.MetadataOrBuilder
-
setOutputInfo
the output arrays/tensors of the model, order matters
repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
-
setOutputInfo
public Mlmodel.Metadata.Builder setOutputInfo(int index, Mlmodel.TensorInfo.Builder builderForValue) the output arrays/tensors of the model, order matters
repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
-
addOutputInfo
the output arrays/tensors of the model, order matters
repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
-
addOutputInfo
the output arrays/tensors of the model, order matters
repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
-
addOutputInfo
the output arrays/tensors of the model, order matters
repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
-
addOutputInfo
public Mlmodel.Metadata.Builder addOutputInfo(int index, Mlmodel.TensorInfo.Builder builderForValue) the output arrays/tensors of the model, order matters
repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
-
addAllOutputInfo
the output arrays/tensors of the model, order matters
repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
-
clearOutputInfo
the output arrays/tensors of the model, order matters
repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
-
removeOutputInfo
the output arrays/tensors of the model, order matters
repeated .viam.service.mlmodel.v1.TensorInfo output_info = 5 [json_name = "outputInfo"];
-