Package inference
Interface GrpcPredictV2.InferTensorContentsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GrpcPredictV2.InferTensorContents,GrpcPredictV2.InferTensorContents.Builder
- Enclosing class:
GrpcPredictV2
public static interface GrpcPredictV2.InferTensorContentsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolContents(int index) Representation for BOOL data type.intRepresentation for BOOL data type.Representation for BOOL data type.com.google.protobuf.ByteStringgetBytesContents(int index) Representation for BYTES data type.intRepresentation for BYTES data type.List<com.google.protobuf.ByteString> Representation for BYTES data type.floatgetFp32Contents(int index) Representation for FP32 data type.intRepresentation for FP32 data type.Representation for FP32 data type.doublegetFp64Contents(int index) Representation for FP64 data type.intRepresentation for FP64 data type.Representation for FP64 data type.longgetInt64Contents(int index) Representation for INT64 data types.intRepresentation for INT64 data types.Representation for INT64 data types.intgetIntContents(int index) Representation for INT8, INT16, and INT32 data types.intRepresentation for INT8, INT16, and INT32 data types.Representation for INT8, INT16, and INT32 data types.longgetUint64Contents(int index) Representation for UINT64 data types.intRepresentation for UINT64 data types.Representation for UINT64 data types.intgetUintContents(int index) Representation for UINT8, UINT16, and UINT32 data types.intRepresentation for UINT8, UINT16, and UINT32 data types.Representation for UINT8, UINT16, and UINT32 data types.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getBoolContentsList
Representation for BOOL data type. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated bool bool_contents = 1;- Returns:
- A list containing the boolContents.
-
getBoolContentsCount
int getBoolContentsCount()Representation for BOOL data type. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated bool bool_contents = 1;- Returns:
- The count of boolContents.
-
getBoolContents
boolean getBoolContents(int index) Representation for BOOL data type. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated bool bool_contents = 1;- Parameters:
index- The index of the element to return.- Returns:
- The boolContents at the given index.
-
getIntContentsList
Representation for INT8, INT16, and INT32 data types. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated int32 int_contents = 2;- Returns:
- A list containing the intContents.
-
getIntContentsCount
int getIntContentsCount()Representation for INT8, INT16, and INT32 data types. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated int32 int_contents = 2;- Returns:
- The count of intContents.
-
getIntContents
int getIntContents(int index) Representation for INT8, INT16, and INT32 data types. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated int32 int_contents = 2;- Parameters:
index- The index of the element to return.- Returns:
- The intContents at the given index.
-
getInt64ContentsList
Representation for INT64 data types. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated int64 int64_contents = 3;- Returns:
- A list containing the int64Contents.
-
getInt64ContentsCount
int getInt64ContentsCount()Representation for INT64 data types. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated int64 int64_contents = 3;- Returns:
- The count of int64Contents.
-
getInt64Contents
long getInt64Contents(int index) Representation for INT64 data types. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated int64 int64_contents = 3;- Parameters:
index- The index of the element to return.- Returns:
- The int64Contents at the given index.
-
getUintContentsList
Representation for UINT8, UINT16, and UINT32 data types. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated uint32 uint_contents = 4;- Returns:
- A list containing the uintContents.
-
getUintContentsCount
int getUintContentsCount()Representation for UINT8, UINT16, and UINT32 data types. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated uint32 uint_contents = 4;- Returns:
- The count of uintContents.
-
getUintContents
int getUintContents(int index) Representation for UINT8, UINT16, and UINT32 data types. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated uint32 uint_contents = 4;- Parameters:
index- The index of the element to return.- Returns:
- The uintContents at the given index.
-
getUint64ContentsList
Representation for UINT64 data types. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated uint64 uint64_contents = 5;- Returns:
- A list containing the uint64Contents.
-
getUint64ContentsCount
int getUint64ContentsCount()Representation for UINT64 data types. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated uint64 uint64_contents = 5;- Returns:
- The count of uint64Contents.
-
getUint64Contents
long getUint64Contents(int index) Representation for UINT64 data types. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated uint64 uint64_contents = 5;- Parameters:
index- The index of the element to return.- Returns:
- The uint64Contents at the given index.
-
getFp32ContentsList
Representation for FP32 data type. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated float fp32_contents = 6;- Returns:
- A list containing the fp32Contents.
-
getFp32ContentsCount
int getFp32ContentsCount()Representation for FP32 data type. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated float fp32_contents = 6;- Returns:
- The count of fp32Contents.
-
getFp32Contents
float getFp32Contents(int index) Representation for FP32 data type. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated float fp32_contents = 6;- Parameters:
index- The index of the element to return.- Returns:
- The fp32Contents at the given index.
-
getFp64ContentsList
Representation for FP64 data type. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated double fp64_contents = 7;- Returns:
- A list containing the fp64Contents.
-
getFp64ContentsCount
int getFp64ContentsCount()Representation for FP64 data type. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated double fp64_contents = 7;- Returns:
- The count of fp64Contents.
-
getFp64Contents
double getFp64Contents(int index) Representation for FP64 data type. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated double fp64_contents = 7;- Parameters:
index- The index of the element to return.- Returns:
- The fp64Contents at the given index.
-
getBytesContentsList
List<com.google.protobuf.ByteString> getBytesContentsList()Representation for BYTES data type. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated bytes bytes_contents = 8;- Returns:
- A list containing the bytesContents.
-
getBytesContentsCount
int getBytesContentsCount()Representation for BYTES data type. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated bytes bytes_contents = 8;- Returns:
- The count of bytesContents.
-
getBytesContents
com.google.protobuf.ByteString getBytesContents(int index) Representation for BYTES data type. The size must match what is expected by the tensor's shape. The contents must be the flattened, one-dimensional, row-major order of the tensor elements.
repeated bytes bytes_contents = 8;- Parameters:
index- The index of the element to return.- Returns:
- The bytesContents at the given index.
-