Class Mlmodel.FlatTensorDataFloat.Builder

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

public static final class Mlmodel.FlatTensorDataFloat.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Mlmodel.FlatTensorDataFloat,Mlmodel.FlatTensorDataFloat.Builder> implements Mlmodel.FlatTensorDataFloatOrBuilder
Protobuf type viam.service.mlmodel.v1.FlatTensorDataFloat
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllData(Iterable<? extends Float> values)
    repeated float data = 1 [json_name = "data", packed = true];
    addData(float value)
    repeated float data = 1 [json_name = "data", packed = true];
    repeated float data = 1 [json_name = "data", packed = true];
    float
    getData(int index)
    repeated float data = 1 [json_name = "data", packed = true];
    int
    repeated float data = 1 [json_name = "data", packed = true];
    repeated float data = 1 [json_name = "data", packed = true];
    setData(int index, float value)
    repeated float data = 1 [json_name = "data", packed = true];

    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

    • getDataList

      public List<Float> getDataList()
      repeated float data = 1 [json_name = "data", packed = true];
      Specified by:
      getDataList in interface Mlmodel.FlatTensorDataFloatOrBuilder
      Returns:
      A list containing the data.
    • getDataCount

      public int getDataCount()
      repeated float data = 1 [json_name = "data", packed = true];
      Specified by:
      getDataCount in interface Mlmodel.FlatTensorDataFloatOrBuilder
      Returns:
      The count of data.
    • getData

      public float getData(int index)
      repeated float data = 1 [json_name = "data", packed = true];
      Specified by:
      getData in interface Mlmodel.FlatTensorDataFloatOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The data at the given index.
    • setData

      public Mlmodel.FlatTensorDataFloat.Builder setData(int index, float value)
      repeated float data = 1 [json_name = "data", packed = true];
      Parameters:
      value - The data to set.
      Returns:
      This builder for chaining.
    • addData

      public Mlmodel.FlatTensorDataFloat.Builder addData(float value)
      repeated float data = 1 [json_name = "data", packed = true];
      Parameters:
      value - The data to add.
      Returns:
      This builder for chaining.
    • addAllData

      public Mlmodel.FlatTensorDataFloat.Builder addAllData(Iterable<? extends Float> values)
      repeated float data = 1 [json_name = "data", packed = true];
      Parameters:
      values - The data to add.
      Returns:
      This builder for chaining.
    • clearData

      repeated float data = 1 [json_name = "data", packed = true];
      Returns:
      This builder for chaining.