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
  • Method Details

    • getName

      public String getName()
       name of the file, with file extension
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Mlmodel.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 interface Mlmodel.FileOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Mlmodel.File.Builder setName(String value)
       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

      public Mlmodel.File.Builder clearName()
       name of the file, with file extension
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Mlmodel.File.Builder setNameBytes(com.google.protobuf.ByteString value)
       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

      public String getDescription()
       description of what the file contains
       
      string description = 2 [json_name = "description"];
      Specified by:
      getDescription in interface Mlmodel.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 interface Mlmodel.FileOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Mlmodel.File.Builder setDescription(String value)
       description of what the file contains
       
      string description = 2 [json_name = "description"];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Mlmodel.File.Builder clearDescription()
       description of what the file contains
       
      string description = 2 [json_name = "description"];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Mlmodel.File.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       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 interface Mlmodel.FileOrBuilder
      Returns:
      The enum numeric value on the wire for labelType.
    • setLabelTypeValue

      public Mlmodel.File.Builder setLabelTypeValue(int value)
       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

      public Mlmodel.LabelType 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 interface Mlmodel.FileOrBuilder
      Returns:
      The labelType.
    • setLabelType

      public Mlmodel.File.Builder setLabelType(Mlmodel.LabelType value)
       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

      public Mlmodel.File.Builder 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.