Package com.viam.service.mlmodel.v1
Class Mlmodel.File.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.File,Mlmodel.File.Builder>
com.viam.service.mlmodel.v1.Mlmodel.File.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Mlmodel.FileOrBuilder
,Cloneable
- Enclosing class:
- Mlmodel.File
public static final class Mlmodel.File.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.File,Mlmodel.File.Builder>
implements Mlmodel.FileOrBuilder
Protobuf type
viam.service.mlmodel.v1.File
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptiondescription of what the file containsHow to associate the arrays/tensors to the labels in the filename of the file, with file extensiondescription of what the file containscom.google.protobuf.ByteString
description of what the file containsHow to associate the arrays/tensors to the labels in the fileint
How to associate the arrays/tensors to the labels in the filegetName()
name of the file, with file extensioncom.google.protobuf.ByteString
name of the file, with file extensionsetDescription
(String value) description of what the file containssetDescriptionBytes
(com.google.protobuf.ByteString value) description of what the file containssetLabelType
(Mlmodel.LabelType value) How to associate the arrays/tensors to the labels in the filesetLabelTypeValue
(int value) How to associate the arrays/tensors to the labels in the filename of the file, with file extensionsetNameBytes
(com.google.protobuf.ByteString value) name of the file, with file extensionMethods 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 file, with file extension
string name = 1 [json_name = "name"];
- Specified by:
getName
in interfaceMlmodel.FileOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()name of the file, with file extension
string name = 1 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceMlmodel.FileOrBuilder
- Returns:
- The bytes for name.
-
setName
name of the file, with file extension
string name = 1 [json_name = "name"];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
name of the file, with file extension
string name = 1 [json_name = "name"];
- Returns:
- This builder for chaining.
-
setNameBytes
name of the file, with file extension
string name = 1 [json_name = "name"];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDescription
description of what the file contains
string description = 2 [json_name = "description"];
- Specified by:
getDescription
in interfaceMlmodel.FileOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()description of what the file contains
string description = 2 [json_name = "description"];
- Specified by:
getDescriptionBytes
in interfaceMlmodel.FileOrBuilder
- Returns:
- The bytes for description.
-
setDescription
description of what the file contains
string description = 2 [json_name = "description"];
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
description of what the file contains
string description = 2 [json_name = "description"];
- Returns:
- This builder for chaining.
-
setDescriptionBytes
description of what the file contains
string description = 2 [json_name = "description"];
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
getLabelTypeValue
public int getLabelTypeValue()How to associate the arrays/tensors to the labels in the file
.viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"];
- Specified by:
getLabelTypeValue
in interfaceMlmodel.FileOrBuilder
- Returns:
- The enum numeric value on the wire for labelType.
-
setLabelTypeValue
How to associate the arrays/tensors to the labels in the file
.viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"];
- Parameters:
value
- The labelType to set.- Returns:
- This builder for chaining.
-
getLabelType
How to associate the arrays/tensors to the labels in the file
.viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"];
- Specified by:
getLabelType
in interfaceMlmodel.FileOrBuilder
- Returns:
- The labelType.
-
setLabelType
How to associate the arrays/tensors to the labels in the file
.viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"];
- Parameters:
value
- The enum numeric value on the wire for labelType to set.- Returns:
- This builder for chaining.
-
clearLabelType
How to associate the arrays/tensors to the labels in the file
.viam.service.mlmodel.v1.LabelType label_type = 3 [json_name = "labelType"];
- Returns:
- This builder for chaining.
-