Package inference
Class GrpcPredictV2.InferTensorContents.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GrpcPredictV2.InferTensorContents.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
inference.GrpcPredictV2.InferTensorContents.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,GrpcPredictV2.InferTensorContentsOrBuilder,Cloneable
- Enclosing class:
GrpcPredictV2.InferTensorContents
public static final class GrpcPredictV2.InferTensorContents.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllBoolContents(Iterable<? extends Boolean> values) Representation for BOOL data type.addAllBytesContents(Iterable<? extends com.google.protobuf.ByteString> values) Representation for BYTES data type.addAllFp32Contents(Iterable<? extends Float> values) Representation for FP32 data type.addAllFp64Contents(Iterable<? extends Double> values) Representation for FP64 data type.addAllInt64Contents(Iterable<? extends Long> values) Representation for INT64 data types.addAllIntContents(Iterable<? extends Integer> values) Representation for INT8, INT16, and INT32 data types.addAllUint64Contents(Iterable<? extends Long> values) Representation for UINT64 data types.addAllUintContents(Iterable<? extends Integer> values) Representation for UINT8, UINT16, and UINT32 data types.addBoolContents(boolean value) Representation for BOOL data type.addBytesContents(com.google.protobuf.ByteString value) Representation for BYTES data type.addFp32Contents(float value) Representation for FP32 data type.addFp64Contents(double value) Representation for FP64 data type.addInt64Contents(long value) Representation for INT64 data types.addIntContents(int value) Representation for INT8, INT16, and INT32 data types.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addUint64Contents(long value) Representation for UINT64 data types.addUintContents(int value) Representation for UINT8, UINT16, and UINT32 data types.build()clear()Representation for BOOL data type.Representation for BYTES data type.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Representation for FP32 data type.Representation for FP64 data type.Representation for INT64 data types.Representation for INT8, INT16, and INT32 data types.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Representation for UINT64 data types.Representation for UINT8, UINT16, and UINT32 data types.clone()booleangetBoolContents(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.Descriptorcom.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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBoolContents(int index, boolean value) Representation for BOOL data type.setBytesContents(int index, com.google.protobuf.ByteString value) Representation for BYTES data type.setFp32Contents(int index, float value) Representation for FP32 data type.setFp64Contents(int index, double value) Representation for FP64 data type.setInt64Contents(int index, long value) Representation for INT64 data types.setIntContents(int index, int value) Representation for INT8, INT16, and INT32 data types.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUint64Contents(int index, long value) Representation for UINT64 data types.setUintContents(int index, int value) Representation for UINT8, UINT16, and UINT32 data types.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<GrpcPredictV2.InferTensorContents.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
-
setField
public GrpcPredictV2.InferTensorContents.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
-
clearField
public GrpcPredictV2.InferTensorContents.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
-
clearOneof
public GrpcPredictV2.InferTensorContents.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
-
setRepeatedField
public GrpcPredictV2.InferTensorContents.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
-
addRepeatedField
public GrpcPredictV2.InferTensorContents.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcPredictV2.InferTensorContents.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
-
mergeFrom
public GrpcPredictV2.InferTensorContents.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GrpcPredictV2.InferTensorContents.Builder>- Throws:
IOException
-
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.
-
setBoolContents
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 to set the value at.value- The boolContents to set.- Returns:
- This builder for chaining.
-
addBoolContents
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:
value- The boolContents to add.- Returns:
- This builder for chaining.
-
addAllBoolContents
public GrpcPredictV2.InferTensorContents.Builder addAllBoolContents(Iterable<? extends Boolean> values) 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:
values- The boolContents to add.- Returns:
- This builder for chaining.
-
clearBoolContents
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:
- This builder for chaining.
-
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.
-
setIntContents
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 to set the value at.value- The intContents to set.- Returns:
- This builder for chaining.
-
addIntContents
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:
value- The intContents to add.- Returns:
- This builder for chaining.
-
addAllIntContents
public GrpcPredictV2.InferTensorContents.Builder addAllIntContents(Iterable<? extends Integer> values) 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:
values- The intContents to add.- Returns:
- This builder for chaining.
-
clearIntContents
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:
- This builder for chaining.
-
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.
-
setInt64Contents
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 to set the value at.value- The int64Contents to set.- Returns:
- This builder for chaining.
-
addInt64Contents
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:
value- The int64Contents to add.- Returns:
- This builder for chaining.
-
addAllInt64Contents
public GrpcPredictV2.InferTensorContents.Builder addAllInt64Contents(Iterable<? extends Long> values) 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:
values- The int64Contents to add.- Returns:
- This builder for chaining.
-
clearInt64Contents
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:
- This builder for chaining.
-
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.
-
setUintContents
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 to set the value at.value- The uintContents to set.- Returns:
- This builder for chaining.
-
addUintContents
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:
value- The uintContents to add.- Returns:
- This builder for chaining.
-
addAllUintContents
public GrpcPredictV2.InferTensorContents.Builder addAllUintContents(Iterable<? extends Integer> values) 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:
values- The uintContents to add.- Returns:
- This builder for chaining.
-
clearUintContents
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:
- This builder for chaining.
-
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.
-
setUint64Contents
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 to set the value at.value- The uint64Contents to set.- Returns:
- This builder for chaining.
-
addUint64Contents
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:
value- The uint64Contents to add.- Returns:
- This builder for chaining.
-
addAllUint64Contents
public GrpcPredictV2.InferTensorContents.Builder addAllUint64Contents(Iterable<? extends Long> values) 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:
values- The uint64Contents to add.- Returns:
- This builder for chaining.
-
clearUint64Contents
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:
- This builder for chaining.
-
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.
-
setFp32Contents
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 to set the value at.value- The fp32Contents to set.- Returns:
- This builder for chaining.
-
addFp32Contents
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:
value- The fp32Contents to add.- Returns:
- This builder for chaining.
-
addAllFp32Contents
public GrpcPredictV2.InferTensorContents.Builder addAllFp32Contents(Iterable<? extends Float> values) 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:
values- The fp32Contents to add.- Returns:
- This builder for chaining.
-
clearFp32Contents
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:
- This builder for chaining.
-
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.
-
setFp64Contents
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 to set the value at.value- The fp64Contents to set.- Returns:
- This builder for chaining.
-
addFp64Contents
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:
value- The fp64Contents to add.- Returns:
- This builder for chaining.
-
addAllFp64Contents
public GrpcPredictV2.InferTensorContents.Builder addAllFp64Contents(Iterable<? extends Double> values) 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:
values- The fp64Contents to add.- Returns:
- This builder for chaining.
-
clearFp64Contents
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:
- This builder for chaining.
-
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.
-
setBytesContents
public GrpcPredictV2.InferTensorContents.Builder setBytesContents(int index, com.google.protobuf.ByteString value) 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 to set the value at.value- The bytesContents to set.- Returns:
- This builder for chaining.
-
addBytesContents
public GrpcPredictV2.InferTensorContents.Builder addBytesContents(com.google.protobuf.ByteString value) 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:
value- The bytesContents to add.- Returns:
- This builder for chaining.
-
addAllBytesContents
public GrpcPredictV2.InferTensorContents.Builder addAllBytesContents(Iterable<? extends com.google.protobuf.ByteString> values) 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:
values- The bytesContents to add.- Returns:
- This builder for chaining.
-
clearBytesContents
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:
- This builder for chaining.
-
setUnknownFields
public final GrpcPredictV2.InferTensorContents.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
-
mergeUnknownFields
public final GrpcPredictV2.InferTensorContents.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GrpcPredictV2.InferTensorContents.Builder>
-