Package inference
Class GrpcPredictV2.InferTensorContents
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
inference.GrpcPredictV2.InferTensorContents
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GrpcPredictV2.InferTensorContentsOrBuilder,Serializable
- Enclosing class:
GrpcPredictV2
public static final class GrpcPredictV2.InferTensorContents
extends com.google.protobuf.GeneratedMessageV3
implements GrpcPredictV2.InferTensorContentsOrBuilder
The data contained in a tensor represented by the repeated type that matches the tensor's data type. Protobuf oneof is not used because oneofs cannot contain repeated fields.Protobuf type
inference.InferTensorContents- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe data contained in a tensor represented by the repeated type that matches the tensor's data type.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetBoolContents(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.static final com.google.protobuf.Descriptors.DescriptorfloatgetFp32Contents(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.com.google.protobuf.Parser<GrpcPredictV2.InferTensorContents> intlonggetUint64Contents(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.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleannewBuilder(GrpcPredictV2.InferTensorContents prototype) newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GrpcPredictV2.InferTensorContents> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
BOOL_CONTENTS_FIELD_NUMBER
public static final int BOOL_CONTENTS_FIELD_NUMBER- See Also:
-
INT_CONTENTS_FIELD_NUMBER
public static final int INT_CONTENTS_FIELD_NUMBER- See Also:
-
INT64_CONTENTS_FIELD_NUMBER
public static final int INT64_CONTENTS_FIELD_NUMBER- See Also:
-
UINT_CONTENTS_FIELD_NUMBER
public static final int UINT_CONTENTS_FIELD_NUMBER- See Also:
-
UINT64_CONTENTS_FIELD_NUMBER
public static final int UINT64_CONTENTS_FIELD_NUMBER- See Also:
-
FP32_CONTENTS_FIELD_NUMBER
public static final int FP32_CONTENTS_FIELD_NUMBER- See Also:
-
FP64_CONTENTS_FIELD_NUMBER
public static final int FP64_CONTENTS_FIELD_NUMBER- See Also:
-
BYTES_CONTENTS_FIELD_NUMBER
public static final int BYTES_CONTENTS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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;- Specified by:
getBoolContentsListin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- A list containing the boolContents.
-
getBoolContentsCount
public 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;- Specified by:
getBoolContentsCountin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- The count of boolContents.
-
getBoolContents
public 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;- Specified by:
getBoolContentsin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- 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;- Specified by:
getIntContentsListin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- A list containing the intContents.
-
getIntContentsCount
public 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;- Specified by:
getIntContentsCountin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- The count of intContents.
-
getIntContents
public 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;- Specified by:
getIntContentsin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- 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;- Specified by:
getInt64ContentsListin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- A list containing the int64Contents.
-
getInt64ContentsCount
public 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;- Specified by:
getInt64ContentsCountin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- The count of int64Contents.
-
getInt64Contents
public 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;- Specified by:
getInt64Contentsin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- 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;- Specified by:
getUintContentsListin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- A list containing the uintContents.
-
getUintContentsCount
public 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;- Specified by:
getUintContentsCountin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- The count of uintContents.
-
getUintContents
public 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;- Specified by:
getUintContentsin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- 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;- Specified by:
getUint64ContentsListin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- A list containing the uint64Contents.
-
getUint64ContentsCount
public 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;- Specified by:
getUint64ContentsCountin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- The count of uint64Contents.
-
getUint64Contents
public 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;- Specified by:
getUint64Contentsin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- 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;- Specified by:
getFp32ContentsListin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- A list containing the fp32Contents.
-
getFp32ContentsCount
public 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;- Specified by:
getFp32ContentsCountin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- The count of fp32Contents.
-
getFp32Contents
public 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;- Specified by:
getFp32Contentsin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- 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;- Specified by:
getFp64ContentsListin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- A list containing the fp64Contents.
-
getFp64ContentsCount
public 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;- Specified by:
getFp64ContentsCountin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- The count of fp64Contents.
-
getFp64Contents
public 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;- Specified by:
getFp64Contentsin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The fp64Contents at the given index.
-
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;- Specified by:
getBytesContentsListin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- A list containing the bytesContents.
-
getBytesContentsCount
public 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;- Specified by:
getBytesContentsCountin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Returns:
- The count of bytesContents.
-
getBytesContents
public 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;- Specified by:
getBytesContentsin interfaceGrpcPredictV2.InferTensorContentsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The bytesContents at the given index.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GrpcPredictV2.InferTensorContents parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcPredictV2.InferTensorContents parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcPredictV2.InferTensorContents parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcPredictV2.InferTensorContents parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcPredictV2.InferTensorContents parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GrpcPredictV2.InferTensorContents parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GrpcPredictV2.InferTensorContents parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static GrpcPredictV2.InferTensorContents parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static GrpcPredictV2.InferTensorContents parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GrpcPredictV2.InferTensorContents parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GrpcPredictV2.InferTensorContents parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static GrpcPredictV2.InferTensorContents.Builder newBuilder(GrpcPredictV2.InferTensorContents prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GrpcPredictV2.InferTensorContents.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-