Class Mlmodel.TensorInfo.Builder

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

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

    • getName

      public String getName()
       name of the data in the array/tensor
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Mlmodel.TensorInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       name of the data in the array/tensor
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface Mlmodel.TensorInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Mlmodel.TensorInfo.Builder setName(String value)
       name of the data in the array/tensor
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Mlmodel.TensorInfo.Builder clearName()
       name of the data in the array/tensor
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Mlmodel.TensorInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       name of the data in the array/tensor
       
      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 the data in the array/tensor
       
      string description = 2 [json_name = "description"];
      Specified by:
      getDescription in interface Mlmodel.TensorInfoOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       description of the data in the array/tensor
       
      string description = 2 [json_name = "description"];
      Specified by:
      getDescriptionBytes in interface Mlmodel.TensorInfoOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Mlmodel.TensorInfo.Builder setDescription(String value)
       description of the data in the array/tensor
       
      string description = 2 [json_name = "description"];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Mlmodel.TensorInfo.Builder clearDescription()
       description of the data in the array/tensor
       
      string description = 2 [json_name = "description"];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Mlmodel.TensorInfo.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       description of the data in the array/tensor
       
      string description = 2 [json_name = "description"];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getDataType

      public String getDataType()
       data type of the array/tensor, e.g. float32, float64, uint8
       
      string data_type = 3 [json_name = "dataType"];
      Specified by:
      getDataType in interface Mlmodel.TensorInfoOrBuilder
      Returns:
      The dataType.
    • getDataTypeBytes

      public com.google.protobuf.ByteString getDataTypeBytes()
       data type of the array/tensor, e.g. float32, float64, uint8
       
      string data_type = 3 [json_name = "dataType"];
      Specified by:
      getDataTypeBytes in interface Mlmodel.TensorInfoOrBuilder
      Returns:
      The bytes for dataType.
    • setDataType

      public Mlmodel.TensorInfo.Builder setDataType(String value)
       data type of the array/tensor, e.g. float32, float64, uint8
       
      string data_type = 3 [json_name = "dataType"];
      Parameters:
      value - The dataType to set.
      Returns:
      This builder for chaining.
    • clearDataType

      public Mlmodel.TensorInfo.Builder clearDataType()
       data type of the array/tensor, e.g. float32, float64, uint8
       
      string data_type = 3 [json_name = "dataType"];
      Returns:
      This builder for chaining.
    • setDataTypeBytes

      public Mlmodel.TensorInfo.Builder setDataTypeBytes(com.google.protobuf.ByteString value)
       data type of the array/tensor, e.g. float32, float64, uint8
       
      string data_type = 3 [json_name = "dataType"];
      Parameters:
      value - The bytes for dataType to set.
      Returns:
      This builder for chaining.
    • getShapeList

      public List<Integer> getShapeList()
       shape of the array/tensor (-1 for unknown)
       
      repeated int32 shape = 4 [json_name = "shape"];
      Specified by:
      getShapeList in interface Mlmodel.TensorInfoOrBuilder
      Returns:
      A list containing the shape.
    • getShapeCount

      public int getShapeCount()
       shape of the array/tensor (-1 for unknown)
       
      repeated int32 shape = 4 [json_name = "shape"];
      Specified by:
      getShapeCount in interface Mlmodel.TensorInfoOrBuilder
      Returns:
      The count of shape.
    • getShape

      public int getShape(int index)
       shape of the array/tensor (-1 for unknown)
       
      repeated int32 shape = 4 [json_name = "shape"];
      Specified by:
      getShape in interface Mlmodel.TensorInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The shape at the given index.
    • setShape

      public Mlmodel.TensorInfo.Builder setShape(int index, int value)
       shape of the array/tensor (-1 for unknown)
       
      repeated int32 shape = 4 [json_name = "shape"];
      Parameters:
      value - The shape to set.
      Returns:
      This builder for chaining.
    • addShape

      public Mlmodel.TensorInfo.Builder addShape(int value)
       shape of the array/tensor (-1 for unknown)
       
      repeated int32 shape = 4 [json_name = "shape"];
      Parameters:
      value - The shape to add.
      Returns:
      This builder for chaining.
    • addAllShape

      public Mlmodel.TensorInfo.Builder addAllShape(Iterable<? extends Integer> values)
       shape of the array/tensor (-1 for unknown)
       
      repeated int32 shape = 4 [json_name = "shape"];
      Parameters:
      values - The shape to add.
      Returns:
      This builder for chaining.
    • clearShape

      public Mlmodel.TensorInfo.Builder clearShape()
       shape of the array/tensor (-1 for unknown)
       
      repeated int32 shape = 4 [json_name = "shape"];
      Returns:
      This builder for chaining.
    • getAssociatedFilesList

      public List<Mlmodel.File> getAssociatedFilesList()
       files associated with the array/tensor, like for category labels
       
      repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
      Specified by:
      getAssociatedFilesList in interface Mlmodel.TensorInfoOrBuilder
    • getAssociatedFilesCount

      public int getAssociatedFilesCount()
       files associated with the array/tensor, like for category labels
       
      repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
      Specified by:
      getAssociatedFilesCount in interface Mlmodel.TensorInfoOrBuilder
    • getAssociatedFiles

      public Mlmodel.File getAssociatedFiles(int index)
       files associated with the array/tensor, like for category labels
       
      repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
      Specified by:
      getAssociatedFiles in interface Mlmodel.TensorInfoOrBuilder
    • setAssociatedFiles

      public Mlmodel.TensorInfo.Builder setAssociatedFiles(int index, Mlmodel.File value)
       files associated with the array/tensor, like for category labels
       
      repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
    • setAssociatedFiles

      public Mlmodel.TensorInfo.Builder setAssociatedFiles(int index, Mlmodel.File.Builder builderForValue)
       files associated with the array/tensor, like for category labels
       
      repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
    • addAssociatedFiles

      public Mlmodel.TensorInfo.Builder addAssociatedFiles(Mlmodel.File value)
       files associated with the array/tensor, like for category labels
       
      repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
    • addAssociatedFiles

      public Mlmodel.TensorInfo.Builder addAssociatedFiles(int index, Mlmodel.File value)
       files associated with the array/tensor, like for category labels
       
      repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
    • addAssociatedFiles

      public Mlmodel.TensorInfo.Builder addAssociatedFiles(Mlmodel.File.Builder builderForValue)
       files associated with the array/tensor, like for category labels
       
      repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
    • addAssociatedFiles

      public Mlmodel.TensorInfo.Builder addAssociatedFiles(int index, Mlmodel.File.Builder builderForValue)
       files associated with the array/tensor, like for category labels
       
      repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
    • addAllAssociatedFiles

      public Mlmodel.TensorInfo.Builder addAllAssociatedFiles(Iterable<? extends Mlmodel.File> values)
       files associated with the array/tensor, like for category labels
       
      repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
    • clearAssociatedFiles

      public Mlmodel.TensorInfo.Builder clearAssociatedFiles()
       files associated with the array/tensor, like for category labels
       
      repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
    • removeAssociatedFiles

      public Mlmodel.TensorInfo.Builder removeAssociatedFiles(int index)
       files associated with the array/tensor, like for category labels
       
      repeated .viam.service.mlmodel.v1.File associated_files = 5 [json_name = "associatedFiles"];
    • hasExtra

      public boolean hasExtra()
       anything else you want to say
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
      Specified by:
      hasExtra in interface Mlmodel.TensorInfoOrBuilder
      Returns:
      Whether the extra field is set.
    • getExtra

      public com.google.protobuf.Struct getExtra()
       anything else you want to say
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
      Specified by:
      getExtra in interface Mlmodel.TensorInfoOrBuilder
      Returns:
      The extra.
    • setExtra

      public Mlmodel.TensorInfo.Builder setExtra(com.google.protobuf.Struct value)
       anything else you want to say
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • setExtra

      public Mlmodel.TensorInfo.Builder setExtra(com.google.protobuf.Struct.Builder builderForValue)
       anything else you want to say
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • mergeExtra

      public Mlmodel.TensorInfo.Builder mergeExtra(com.google.protobuf.Struct value)
       anything else you want to say
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • clearExtra

      public Mlmodel.TensorInfo.Builder clearExtra()
       anything else you want to say
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];