Package org.platanios.tensorflow.proto
Class TensorProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
- org.platanios.tensorflow.proto.TensorProto.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
,TensorProtoOrBuilder
- Enclosing class:
- TensorProto
public static final class TensorProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder> implements TensorProtoOrBuilder
Protocol buffer representing a tensor.
Protobuf typeorg.platanios.tensorflow.proto.TensorProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TensorProto.Builder
addAllBoolVal(java.lang.Iterable<? extends java.lang.Boolean> values)
DT_BOOLTensorProto.Builder
addAllDcomplexVal(java.lang.Iterable<? extends java.lang.Double> values)
DT_COMPLEX128.TensorProto.Builder
addAllDoubleVal(java.lang.Iterable<? extends java.lang.Double> values)
DT_DOUBLE.TensorProto.Builder
addAllFloatVal(java.lang.Iterable<? extends java.lang.Float> values)
DT_FLOAT.TensorProto.Builder
addAllHalfVal(java.lang.Iterable<? extends java.lang.Integer> values)
DT_HALF, DT_BFLOAT16.TensorProto.Builder
addAllInt64Val(java.lang.Iterable<? extends java.lang.Long> values)
DT_INT64TensorProto.Builder
addAllIntVal(java.lang.Iterable<? extends java.lang.Integer> values)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.TensorProto.Builder
addAllResourceHandleVal(java.lang.Iterable<? extends ResourceHandleProto> values)
DT_RESOURCETensorProto.Builder
addAllScomplexVal(java.lang.Iterable<? extends java.lang.Float> values)
DT_COMPLEX64.TensorProto.Builder
addAllStringVal(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
DT_STRINGTensorProto.Builder
addAllUint32Val(java.lang.Iterable<? extends java.lang.Integer> values)
DT_UINT32TensorProto.Builder
addAllUint64Val(java.lang.Iterable<? extends java.lang.Long> values)
DT_UINT64TensorProto.Builder
addAllVariantVal(java.lang.Iterable<? extends VariantTensorDataProto> values)
DT_VARIANTTensorProto.Builder
addBoolVal(boolean value)
DT_BOOLTensorProto.Builder
addDcomplexVal(double value)
DT_COMPLEX128.TensorProto.Builder
addDoubleVal(double value)
DT_DOUBLE.TensorProto.Builder
addFloatVal(float value)
DT_FLOAT.TensorProto.Builder
addHalfVal(int value)
DT_HALF, DT_BFLOAT16.TensorProto.Builder
addInt64Val(long value)
DT_INT64TensorProto.Builder
addIntVal(int value)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.TensorProto.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
TensorProto.Builder
addResourceHandleVal(int index, ResourceHandleProto value)
DT_RESOURCETensorProto.Builder
addResourceHandleVal(int index, ResourceHandleProto.Builder builderForValue)
DT_RESOURCETensorProto.Builder
addResourceHandleVal(ResourceHandleProto value)
DT_RESOURCETensorProto.Builder
addResourceHandleVal(ResourceHandleProto.Builder builderForValue)
DT_RESOURCEResourceHandleProto.Builder
addResourceHandleValBuilder()
DT_RESOURCEResourceHandleProto.Builder
addResourceHandleValBuilder(int index)
DT_RESOURCETensorProto.Builder
addScomplexVal(float value)
DT_COMPLEX64.TensorProto.Builder
addStringVal(com.google.protobuf.ByteString value)
DT_STRINGTensorProto.Builder
addUint32Val(int value)
DT_UINT32TensorProto.Builder
addUint64Val(long value)
DT_UINT64TensorProto.Builder
addVariantVal(int index, VariantTensorDataProto value)
DT_VARIANTTensorProto.Builder
addVariantVal(int index, VariantTensorDataProto.Builder builderForValue)
DT_VARIANTTensorProto.Builder
addVariantVal(VariantTensorDataProto value)
DT_VARIANTTensorProto.Builder
addVariantVal(VariantTensorDataProto.Builder builderForValue)
DT_VARIANTVariantTensorDataProto.Builder
addVariantValBuilder()
DT_VARIANTVariantTensorDataProto.Builder
addVariantValBuilder(int index)
DT_VARIANTTensorProto
build()
TensorProto
buildPartial()
TensorProto.Builder
clear()
TensorProto.Builder
clearBoolVal()
DT_BOOLTensorProto.Builder
clearDcomplexVal()
DT_COMPLEX128.TensorProto.Builder
clearDoubleVal()
DT_DOUBLE.TensorProto.Builder
clearDtype()
.org.platanios.tensorflow.proto.DataType dtype = 1;
TensorProto.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TensorProto.Builder
clearFloatVal()
DT_FLOAT.TensorProto.Builder
clearHalfVal()
DT_HALF, DT_BFLOAT16.TensorProto.Builder
clearInt64Val()
DT_INT64TensorProto.Builder
clearIntVal()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.TensorProto.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TensorProto.Builder
clearResourceHandleVal()
DT_RESOURCETensorProto.Builder
clearScomplexVal()
DT_COMPLEX64.TensorProto.Builder
clearStringVal()
DT_STRINGTensorProto.Builder
clearTensorContent()
Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer.TensorProto.Builder
clearTensorShape()
Shape of the tensor.TensorProto.Builder
clearUint32Val()
DT_UINT32TensorProto.Builder
clearUint64Val()
DT_UINT64TensorProto.Builder
clearVariantVal()
DT_VARIANTTensorProto.Builder
clearVersionNumber()
Version number.TensorProto.Builder
clone()
boolean
getBoolVal(int index)
DT_BOOLint
getBoolValCount()
DT_BOOLjava.util.List<java.lang.Boolean>
getBoolValList()
DT_BOOLdouble
getDcomplexVal(int index)
DT_COMPLEX128.int
getDcomplexValCount()
DT_COMPLEX128.java.util.List<java.lang.Double>
getDcomplexValList()
DT_COMPLEX128.TensorProto
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
double
getDoubleVal(int index)
DT_DOUBLE.int
getDoubleValCount()
DT_DOUBLE.java.util.List<java.lang.Double>
getDoubleValList()
DT_DOUBLE.DataType
getDtype()
.org.platanios.tensorflow.proto.DataType dtype = 1;
int
getDtypeValue()
.org.platanios.tensorflow.proto.DataType dtype = 1;
float
getFloatVal(int index)
DT_FLOAT.int
getFloatValCount()
DT_FLOAT.java.util.List<java.lang.Float>
getFloatValList()
DT_FLOAT.int
getHalfVal(int index)
DT_HALF, DT_BFLOAT16.int
getHalfValCount()
DT_HALF, DT_BFLOAT16.java.util.List<java.lang.Integer>
getHalfValList()
DT_HALF, DT_BFLOAT16.long
getInt64Val(int index)
DT_INT64int
getInt64ValCount()
DT_INT64java.util.List<java.lang.Long>
getInt64ValList()
DT_INT64int
getIntVal(int index)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.int
getIntValCount()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.java.util.List<java.lang.Integer>
getIntValList()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.ResourceHandleProto
getResourceHandleVal(int index)
DT_RESOURCEResourceHandleProto.Builder
getResourceHandleValBuilder(int index)
DT_RESOURCEjava.util.List<ResourceHandleProto.Builder>
getResourceHandleValBuilderList()
DT_RESOURCEint
getResourceHandleValCount()
DT_RESOURCEjava.util.List<ResourceHandleProto>
getResourceHandleValList()
DT_RESOURCEResourceHandleProtoOrBuilder
getResourceHandleValOrBuilder(int index)
DT_RESOURCEjava.util.List<? extends ResourceHandleProtoOrBuilder>
getResourceHandleValOrBuilderList()
DT_RESOURCEfloat
getScomplexVal(int index)
DT_COMPLEX64.int
getScomplexValCount()
DT_COMPLEX64.java.util.List<java.lang.Float>
getScomplexValList()
DT_COMPLEX64.com.google.protobuf.ByteString
getStringVal(int index)
DT_STRINGint
getStringValCount()
DT_STRINGjava.util.List<com.google.protobuf.ByteString>
getStringValList()
DT_STRINGcom.google.protobuf.ByteString
getTensorContent()
Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer.TensorShapeProto
getTensorShape()
Shape of the tensor.TensorShapeProto.Builder
getTensorShapeBuilder()
Shape of the tensor.TensorShapeProtoOrBuilder
getTensorShapeOrBuilder()
Shape of the tensor.int
getUint32Val(int index)
DT_UINT32int
getUint32ValCount()
DT_UINT32java.util.List<java.lang.Integer>
getUint32ValList()
DT_UINT32long
getUint64Val(int index)
DT_UINT64int
getUint64ValCount()
DT_UINT64java.util.List<java.lang.Long>
getUint64ValList()
DT_UINT64VariantTensorDataProto
getVariantVal(int index)
DT_VARIANTVariantTensorDataProto.Builder
getVariantValBuilder(int index)
DT_VARIANTjava.util.List<VariantTensorDataProto.Builder>
getVariantValBuilderList()
DT_VARIANTint
getVariantValCount()
DT_VARIANTjava.util.List<VariantTensorDataProto>
getVariantValList()
DT_VARIANTVariantTensorDataProtoOrBuilder
getVariantValOrBuilder(int index)
DT_VARIANTjava.util.List<? extends VariantTensorDataProtoOrBuilder>
getVariantValOrBuilderList()
DT_VARIANTint
getVersionNumber()
Version number.boolean
hasTensorShape()
Shape of the tensor.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TensorProto.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorProto.Builder
mergeFrom(com.google.protobuf.Message other)
TensorProto.Builder
mergeFrom(TensorProto other)
TensorProto.Builder
mergeTensorShape(TensorShapeProto value)
Shape of the tensor.TensorProto.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TensorProto.Builder
removeResourceHandleVal(int index)
DT_RESOURCETensorProto.Builder
removeVariantVal(int index)
DT_VARIANTTensorProto.Builder
setBoolVal(int index, boolean value)
DT_BOOLTensorProto.Builder
setDcomplexVal(int index, double value)
DT_COMPLEX128.TensorProto.Builder
setDoubleVal(int index, double value)
DT_DOUBLE.TensorProto.Builder
setDtype(DataType value)
.org.platanios.tensorflow.proto.DataType dtype = 1;
TensorProto.Builder
setDtypeValue(int value)
.org.platanios.tensorflow.proto.DataType dtype = 1;
TensorProto.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
TensorProto.Builder
setFloatVal(int index, float value)
DT_FLOAT.TensorProto.Builder
setHalfVal(int index, int value)
DT_HALF, DT_BFLOAT16.TensorProto.Builder
setInt64Val(int index, long value)
DT_INT64TensorProto.Builder
setIntVal(int index, int value)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.TensorProto.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
TensorProto.Builder
setResourceHandleVal(int index, ResourceHandleProto value)
DT_RESOURCETensorProto.Builder
setResourceHandleVal(int index, ResourceHandleProto.Builder builderForValue)
DT_RESOURCETensorProto.Builder
setScomplexVal(int index, float value)
DT_COMPLEX64.TensorProto.Builder
setStringVal(int index, com.google.protobuf.ByteString value)
DT_STRINGTensorProto.Builder
setTensorContent(com.google.protobuf.ByteString value)
Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer.TensorProto.Builder
setTensorShape(TensorShapeProto value)
Shape of the tensor.TensorProto.Builder
setTensorShape(TensorShapeProto.Builder builderForValue)
Shape of the tensor.TensorProto.Builder
setUint32Val(int index, int value)
DT_UINT32TensorProto.Builder
setUint64Val(int index, long value)
DT_UINT64TensorProto.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TensorProto.Builder
setVariantVal(int index, VariantTensorDataProto value)
DT_VARIANTTensorProto.Builder
setVariantVal(int index, VariantTensorDataProto.Builder builderForValue)
DT_VARIANTTensorProto.Builder
setVersionNumber(int value)
Version number.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
clear
public TensorProto.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
getDefaultInstanceForType
public TensorProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TensorProto build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TensorProto buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TensorProto.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
setField
public TensorProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
clearField
public TensorProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
clearOneof
public TensorProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
setRepeatedField
public TensorProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
addRepeatedField
public TensorProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
mergeFrom
public TensorProto.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TensorProto.Builder>
-
mergeFrom
public TensorProto.Builder mergeFrom(TensorProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
mergeFrom
public TensorProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TensorProto.Builder>
- Throws:
java.io.IOException
-
getDtypeValue
public int getDtypeValue()
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Specified by:
getDtypeValue
in interfaceTensorProtoOrBuilder
- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
public TensorProto.Builder setDtypeValue(int value)
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Parameters:
value
- The enum numeric value on the wire for dtype to set.- Returns:
- This builder for chaining.
-
getDtype
public DataType getDtype()
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Specified by:
getDtype
in interfaceTensorProtoOrBuilder
- Returns:
- The dtype.
-
setDtype
public TensorProto.Builder setDtype(DataType value)
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Parameters:
value
- The dtype to set.- Returns:
- This builder for chaining.
-
clearDtype
public TensorProto.Builder clearDtype()
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Returns:
- This builder for chaining.
-
hasTensorShape
public boolean hasTensorShape()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 2;
- Specified by:
hasTensorShape
in interfaceTensorProtoOrBuilder
- Returns:
- Whether the tensorShape field is set.
-
getTensorShape
public TensorShapeProto getTensorShape()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 2;
- Specified by:
getTensorShape
in interfaceTensorProtoOrBuilder
- Returns:
- The tensorShape.
-
setTensorShape
public TensorProto.Builder setTensorShape(TensorShapeProto value)
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 2;
-
setTensorShape
public TensorProto.Builder setTensorShape(TensorShapeProto.Builder builderForValue)
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 2;
-
mergeTensorShape
public TensorProto.Builder mergeTensorShape(TensorShapeProto value)
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 2;
-
clearTensorShape
public TensorProto.Builder clearTensorShape()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 2;
-
getTensorShapeBuilder
public TensorShapeProto.Builder getTensorShapeBuilder()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 2;
-
getTensorShapeOrBuilder
public TensorShapeProtoOrBuilder getTensorShapeOrBuilder()
Shape of the tensor. TODO(touts): sort out the 0-rank issues.
.org.platanios.tensorflow.proto.TensorShapeProto tensor_shape = 2;
- Specified by:
getTensorShapeOrBuilder
in interfaceTensorProtoOrBuilder
-
getVersionNumber
public int getVersionNumber()
Version number. In version 0, if the "repeated xxx" representations contain only one element, that element is repeated to fill the shape. This makes it easy to represent a constant Tensor with a single value.
int32 version_number = 3;
- Specified by:
getVersionNumber
in interfaceTensorProtoOrBuilder
- Returns:
- The versionNumber.
-
setVersionNumber
public TensorProto.Builder setVersionNumber(int value)
Version number. In version 0, if the "repeated xxx" representations contain only one element, that element is repeated to fill the shape. This makes it easy to represent a constant Tensor with a single value.
int32 version_number = 3;
- Parameters:
value
- The versionNumber to set.- Returns:
- This builder for chaining.
-
clearVersionNumber
public TensorProto.Builder clearVersionNumber()
Version number. In version 0, if the "repeated xxx" representations contain only one element, that element is repeated to fill the shape. This makes it easy to represent a constant Tensor with a single value.
int32 version_number = 3;
- Returns:
- This builder for chaining.
-
getTensorContent
public com.google.protobuf.ByteString getTensorContent()
Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation can be used for all tensor types. The purpose of this representation is to reduce serialization overhead during RPC call by avoiding serialization of many repeated small items.
bytes tensor_content = 4;
- Specified by:
getTensorContent
in interfaceTensorProtoOrBuilder
- Returns:
- The tensorContent.
-
setTensorContent
public TensorProto.Builder setTensorContent(com.google.protobuf.ByteString value)
Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation can be used for all tensor types. The purpose of this representation is to reduce serialization overhead during RPC call by avoiding serialization of many repeated small items.
bytes tensor_content = 4;
- Parameters:
value
- The tensorContent to set.- Returns:
- This builder for chaining.
-
clearTensorContent
public TensorProto.Builder clearTensorContent()
Serialized raw tensor content from either Tensor::AsProtoTensorContent or memcpy in tensorflow::grpc::EncodeTensorToByteBuffer. This representation can be used for all tensor types. The purpose of this representation is to reduce serialization overhead during RPC call by avoiding serialization of many repeated small items.
bytes tensor_content = 4;
- Returns:
- This builder for chaining.
-
getHalfValList
public java.util.List<java.lang.Integer> getHalfValList()
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];
- Specified by:
getHalfValList
in interfaceTensorProtoOrBuilder
- Returns:
- A list containing the halfVal.
-
getHalfValCount
public int getHalfValCount()
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];
- Specified by:
getHalfValCount
in interfaceTensorProtoOrBuilder
- Returns:
- The count of halfVal.
-
getHalfVal
public int getHalfVal(int index)
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];
- Specified by:
getHalfVal
in interfaceTensorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The halfVal at the given index.
-
setHalfVal
public TensorProto.Builder setHalfVal(int index, int value)
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The halfVal to set.- Returns:
- This builder for chaining.
-
addHalfVal
public TensorProto.Builder addHalfVal(int value)
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];
- Parameters:
value
- The halfVal to add.- Returns:
- This builder for chaining.
-
addAllHalfVal
public TensorProto.Builder addAllHalfVal(java.lang.Iterable<? extends java.lang.Integer> values)
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];
- Parameters:
values
- The halfVal to add.- Returns:
- This builder for chaining.
-
clearHalfVal
public TensorProto.Builder clearHalfVal()
DT_HALF, DT_BFLOAT16. Note that since protobuf has no int16 type, we'll have some pointless zero padding for each value here.
repeated int32 half_val = 13 [packed = true];
- Returns:
- This builder for chaining.
-
getFloatValList
public java.util.List<java.lang.Float> getFloatValList()
DT_FLOAT.
repeated float float_val = 5 [packed = true];
- Specified by:
getFloatValList
in interfaceTensorProtoOrBuilder
- Returns:
- A list containing the floatVal.
-
getFloatValCount
public int getFloatValCount()
DT_FLOAT.
repeated float float_val = 5 [packed = true];
- Specified by:
getFloatValCount
in interfaceTensorProtoOrBuilder
- Returns:
- The count of floatVal.
-
getFloatVal
public float getFloatVal(int index)
DT_FLOAT.
repeated float float_val = 5 [packed = true];
- Specified by:
getFloatVal
in interfaceTensorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The floatVal at the given index.
-
setFloatVal
public TensorProto.Builder setFloatVal(int index, float value)
DT_FLOAT.
repeated float float_val = 5 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The floatVal to set.- Returns:
- This builder for chaining.
-
addFloatVal
public TensorProto.Builder addFloatVal(float value)
DT_FLOAT.
repeated float float_val = 5 [packed = true];
- Parameters:
value
- The floatVal to add.- Returns:
- This builder for chaining.
-
addAllFloatVal
public TensorProto.Builder addAllFloatVal(java.lang.Iterable<? extends java.lang.Float> values)
DT_FLOAT.
repeated float float_val = 5 [packed = true];
- Parameters:
values
- The floatVal to add.- Returns:
- This builder for chaining.
-
clearFloatVal
public TensorProto.Builder clearFloatVal()
DT_FLOAT.
repeated float float_val = 5 [packed = true];
- Returns:
- This builder for chaining.
-
getDoubleValList
public java.util.List<java.lang.Double> getDoubleValList()
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
- Specified by:
getDoubleValList
in interfaceTensorProtoOrBuilder
- Returns:
- A list containing the doubleVal.
-
getDoubleValCount
public int getDoubleValCount()
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
- Specified by:
getDoubleValCount
in interfaceTensorProtoOrBuilder
- Returns:
- The count of doubleVal.
-
getDoubleVal
public double getDoubleVal(int index)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
- Specified by:
getDoubleVal
in interfaceTensorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The doubleVal at the given index.
-
setDoubleVal
public TensorProto.Builder setDoubleVal(int index, double value)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The doubleVal to set.- Returns:
- This builder for chaining.
-
addDoubleVal
public TensorProto.Builder addDoubleVal(double value)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
- Parameters:
value
- The doubleVal to add.- Returns:
- This builder for chaining.
-
addAllDoubleVal
public TensorProto.Builder addAllDoubleVal(java.lang.Iterable<? extends java.lang.Double> values)
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
- Parameters:
values
- The doubleVal to add.- Returns:
- This builder for chaining.
-
clearDoubleVal
public TensorProto.Builder clearDoubleVal()
DT_DOUBLE.
repeated double double_val = 6 [packed = true];
- Returns:
- This builder for chaining.
-
getIntValList
public java.util.List<java.lang.Integer> getIntValList()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
- Specified by:
getIntValList
in interfaceTensorProtoOrBuilder
- Returns:
- A list containing the intVal.
-
getIntValCount
public int getIntValCount()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
- Specified by:
getIntValCount
in interfaceTensorProtoOrBuilder
- Returns:
- The count of intVal.
-
getIntVal
public int getIntVal(int index)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
- Specified by:
getIntVal
in interfaceTensorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The intVal at the given index.
-
setIntVal
public TensorProto.Builder setIntVal(int index, int value)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The intVal to set.- Returns:
- This builder for chaining.
-
addIntVal
public TensorProto.Builder addIntVal(int value)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
- Parameters:
value
- The intVal to add.- Returns:
- This builder for chaining.
-
addAllIntVal
public TensorProto.Builder addAllIntVal(java.lang.Iterable<? extends java.lang.Integer> values)
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
- Parameters:
values
- The intVal to add.- Returns:
- This builder for chaining.
-
clearIntVal
public TensorProto.Builder clearIntVal()
DT_INT32, DT_INT16, DT_INT8, DT_UINT8.
repeated int32 int_val = 7 [packed = true];
- Returns:
- This builder for chaining.
-
getStringValList
public java.util.List<com.google.protobuf.ByteString> getStringValList()
DT_STRING
repeated bytes string_val = 8;
- Specified by:
getStringValList
in interfaceTensorProtoOrBuilder
- Returns:
- A list containing the stringVal.
-
getStringValCount
public int getStringValCount()
DT_STRING
repeated bytes string_val = 8;
- Specified by:
getStringValCount
in interfaceTensorProtoOrBuilder
- Returns:
- The count of stringVal.
-
getStringVal
public com.google.protobuf.ByteString getStringVal(int index)
DT_STRING
repeated bytes string_val = 8;
- Specified by:
getStringVal
in interfaceTensorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The stringVal at the given index.
-
setStringVal
public TensorProto.Builder setStringVal(int index, com.google.protobuf.ByteString value)
DT_STRING
repeated bytes string_val = 8;
- Parameters:
index
- The index to set the value at.value
- The stringVal to set.- Returns:
- This builder for chaining.
-
addStringVal
public TensorProto.Builder addStringVal(com.google.protobuf.ByteString value)
DT_STRING
repeated bytes string_val = 8;
- Parameters:
value
- The stringVal to add.- Returns:
- This builder for chaining.
-
addAllStringVal
public TensorProto.Builder addAllStringVal(java.lang.Iterable<? extends com.google.protobuf.ByteString> values)
DT_STRING
repeated bytes string_val = 8;
- Parameters:
values
- The stringVal to add.- Returns:
- This builder for chaining.
-
clearStringVal
public TensorProto.Builder clearStringVal()
DT_STRING
repeated bytes string_val = 8;
- Returns:
- This builder for chaining.
-
getScomplexValList
public java.util.List<java.lang.Float> getScomplexValList()
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];
- Specified by:
getScomplexValList
in interfaceTensorProtoOrBuilder
- Returns:
- A list containing the scomplexVal.
-
getScomplexValCount
public int getScomplexValCount()
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];
- Specified by:
getScomplexValCount
in interfaceTensorProtoOrBuilder
- Returns:
- The count of scomplexVal.
-
getScomplexVal
public float getScomplexVal(int index)
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];
- Specified by:
getScomplexVal
in interfaceTensorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The scomplexVal at the given index.
-
setScomplexVal
public TensorProto.Builder setScomplexVal(int index, float value)
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The scomplexVal to set.- Returns:
- This builder for chaining.
-
addScomplexVal
public TensorProto.Builder addScomplexVal(float value)
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];
- Parameters:
value
- The scomplexVal to add.- Returns:
- This builder for chaining.
-
addAllScomplexVal
public TensorProto.Builder addAllScomplexVal(java.lang.Iterable<? extends java.lang.Float> values)
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];
- Parameters:
values
- The scomplexVal to add.- Returns:
- This builder for chaining.
-
clearScomplexVal
public TensorProto.Builder clearScomplexVal()
DT_COMPLEX64. scomplex_val(2*i) and scomplex_val(2*i+1) are real and imaginary parts of i-th single precision complex.
repeated float scomplex_val = 9 [packed = true];
- Returns:
- This builder for chaining.
-
getInt64ValList
public java.util.List<java.lang.Long> getInt64ValList()
DT_INT64
repeated int64 int64_val = 10 [packed = true];
- Specified by:
getInt64ValList
in interfaceTensorProtoOrBuilder
- Returns:
- A list containing the int64Val.
-
getInt64ValCount
public int getInt64ValCount()
DT_INT64
repeated int64 int64_val = 10 [packed = true];
- Specified by:
getInt64ValCount
in interfaceTensorProtoOrBuilder
- Returns:
- The count of int64Val.
-
getInt64Val
public long getInt64Val(int index)
DT_INT64
repeated int64 int64_val = 10 [packed = true];
- Specified by:
getInt64Val
in interfaceTensorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The int64Val at the given index.
-
setInt64Val
public TensorProto.Builder setInt64Val(int index, long value)
DT_INT64
repeated int64 int64_val = 10 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The int64Val to set.- Returns:
- This builder for chaining.
-
addInt64Val
public TensorProto.Builder addInt64Val(long value)
DT_INT64
repeated int64 int64_val = 10 [packed = true];
- Parameters:
value
- The int64Val to add.- Returns:
- This builder for chaining.
-
addAllInt64Val
public TensorProto.Builder addAllInt64Val(java.lang.Iterable<? extends java.lang.Long> values)
DT_INT64
repeated int64 int64_val = 10 [packed = true];
- Parameters:
values
- The int64Val to add.- Returns:
- This builder for chaining.
-
clearInt64Val
public TensorProto.Builder clearInt64Val()
DT_INT64
repeated int64 int64_val = 10 [packed = true];
- Returns:
- This builder for chaining.
-
getBoolValList
public java.util.List<java.lang.Boolean> getBoolValList()
DT_BOOL
repeated bool bool_val = 11 [packed = true];
- Specified by:
getBoolValList
in interfaceTensorProtoOrBuilder
- Returns:
- A list containing the boolVal.
-
getBoolValCount
public int getBoolValCount()
DT_BOOL
repeated bool bool_val = 11 [packed = true];
- Specified by:
getBoolValCount
in interfaceTensorProtoOrBuilder
- Returns:
- The count of boolVal.
-
getBoolVal
public boolean getBoolVal(int index)
DT_BOOL
repeated bool bool_val = 11 [packed = true];
- Specified by:
getBoolVal
in interfaceTensorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The boolVal at the given index.
-
setBoolVal
public TensorProto.Builder setBoolVal(int index, boolean value)
DT_BOOL
repeated bool bool_val = 11 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The boolVal to set.- Returns:
- This builder for chaining.
-
addBoolVal
public TensorProto.Builder addBoolVal(boolean value)
DT_BOOL
repeated bool bool_val = 11 [packed = true];
- Parameters:
value
- The boolVal to add.- Returns:
- This builder for chaining.
-
addAllBoolVal
public TensorProto.Builder addAllBoolVal(java.lang.Iterable<? extends java.lang.Boolean> values)
DT_BOOL
repeated bool bool_val = 11 [packed = true];
- Parameters:
values
- The boolVal to add.- Returns:
- This builder for chaining.
-
clearBoolVal
public TensorProto.Builder clearBoolVal()
DT_BOOL
repeated bool bool_val = 11 [packed = true];
- Returns:
- This builder for chaining.
-
getDcomplexValList
public java.util.List<java.lang.Double> getDcomplexValList()
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];
- Specified by:
getDcomplexValList
in interfaceTensorProtoOrBuilder
- Returns:
- A list containing the dcomplexVal.
-
getDcomplexValCount
public int getDcomplexValCount()
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];
- Specified by:
getDcomplexValCount
in interfaceTensorProtoOrBuilder
- Returns:
- The count of dcomplexVal.
-
getDcomplexVal
public double getDcomplexVal(int index)
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];
- Specified by:
getDcomplexVal
in interfaceTensorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The dcomplexVal at the given index.
-
setDcomplexVal
public TensorProto.Builder setDcomplexVal(int index, double value)
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The dcomplexVal to set.- Returns:
- This builder for chaining.
-
addDcomplexVal
public TensorProto.Builder addDcomplexVal(double value)
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];
- Parameters:
value
- The dcomplexVal to add.- Returns:
- This builder for chaining.
-
addAllDcomplexVal
public TensorProto.Builder addAllDcomplexVal(java.lang.Iterable<? extends java.lang.Double> values)
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];
- Parameters:
values
- The dcomplexVal to add.- Returns:
- This builder for chaining.
-
clearDcomplexVal
public TensorProto.Builder clearDcomplexVal()
DT_COMPLEX128. dcomplex_val(2*i) and dcomplex_val(2*i+1) are real and imaginary parts of i-th double precision complex.
repeated double dcomplex_val = 12 [packed = true];
- Returns:
- This builder for chaining.
-
getResourceHandleValList
public java.util.List<ResourceHandleProto> getResourceHandleValList()
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
- Specified by:
getResourceHandleValList
in interfaceTensorProtoOrBuilder
-
getResourceHandleValCount
public int getResourceHandleValCount()
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
- Specified by:
getResourceHandleValCount
in interfaceTensorProtoOrBuilder
-
getResourceHandleVal
public ResourceHandleProto getResourceHandleVal(int index)
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
- Specified by:
getResourceHandleVal
in interfaceTensorProtoOrBuilder
-
setResourceHandleVal
public TensorProto.Builder setResourceHandleVal(int index, ResourceHandleProto value)
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
setResourceHandleVal
public TensorProto.Builder setResourceHandleVal(int index, ResourceHandleProto.Builder builderForValue)
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
addResourceHandleVal
public TensorProto.Builder addResourceHandleVal(ResourceHandleProto value)
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
addResourceHandleVal
public TensorProto.Builder addResourceHandleVal(int index, ResourceHandleProto value)
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
addResourceHandleVal
public TensorProto.Builder addResourceHandleVal(ResourceHandleProto.Builder builderForValue)
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
addResourceHandleVal
public TensorProto.Builder addResourceHandleVal(int index, ResourceHandleProto.Builder builderForValue)
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
addAllResourceHandleVal
public TensorProto.Builder addAllResourceHandleVal(java.lang.Iterable<? extends ResourceHandleProto> values)
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
clearResourceHandleVal
public TensorProto.Builder clearResourceHandleVal()
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
removeResourceHandleVal
public TensorProto.Builder removeResourceHandleVal(int index)
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
getResourceHandleValBuilder
public ResourceHandleProto.Builder getResourceHandleValBuilder(int index)
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
getResourceHandleValOrBuilder
public ResourceHandleProtoOrBuilder getResourceHandleValOrBuilder(int index)
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
- Specified by:
getResourceHandleValOrBuilder
in interfaceTensorProtoOrBuilder
-
getResourceHandleValOrBuilderList
public java.util.List<? extends ResourceHandleProtoOrBuilder> getResourceHandleValOrBuilderList()
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
- Specified by:
getResourceHandleValOrBuilderList
in interfaceTensorProtoOrBuilder
-
addResourceHandleValBuilder
public ResourceHandleProto.Builder addResourceHandleValBuilder()
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
addResourceHandleValBuilder
public ResourceHandleProto.Builder addResourceHandleValBuilder(int index)
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
getResourceHandleValBuilderList
public java.util.List<ResourceHandleProto.Builder> getResourceHandleValBuilderList()
DT_RESOURCE
repeated .org.platanios.tensorflow.proto.ResourceHandleProto resource_handle_val = 14;
-
getVariantValList
public java.util.List<VariantTensorDataProto> getVariantValList()
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
- Specified by:
getVariantValList
in interfaceTensorProtoOrBuilder
-
getVariantValCount
public int getVariantValCount()
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
- Specified by:
getVariantValCount
in interfaceTensorProtoOrBuilder
-
getVariantVal
public VariantTensorDataProto getVariantVal(int index)
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
- Specified by:
getVariantVal
in interfaceTensorProtoOrBuilder
-
setVariantVal
public TensorProto.Builder setVariantVal(int index, VariantTensorDataProto value)
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
setVariantVal
public TensorProto.Builder setVariantVal(int index, VariantTensorDataProto.Builder builderForValue)
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
addVariantVal
public TensorProto.Builder addVariantVal(VariantTensorDataProto value)
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
addVariantVal
public TensorProto.Builder addVariantVal(int index, VariantTensorDataProto value)
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
addVariantVal
public TensorProto.Builder addVariantVal(VariantTensorDataProto.Builder builderForValue)
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
addVariantVal
public TensorProto.Builder addVariantVal(int index, VariantTensorDataProto.Builder builderForValue)
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
addAllVariantVal
public TensorProto.Builder addAllVariantVal(java.lang.Iterable<? extends VariantTensorDataProto> values)
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
clearVariantVal
public TensorProto.Builder clearVariantVal()
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
removeVariantVal
public TensorProto.Builder removeVariantVal(int index)
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
getVariantValBuilder
public VariantTensorDataProto.Builder getVariantValBuilder(int index)
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
getVariantValOrBuilder
public VariantTensorDataProtoOrBuilder getVariantValOrBuilder(int index)
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
- Specified by:
getVariantValOrBuilder
in interfaceTensorProtoOrBuilder
-
getVariantValOrBuilderList
public java.util.List<? extends VariantTensorDataProtoOrBuilder> getVariantValOrBuilderList()
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
- Specified by:
getVariantValOrBuilderList
in interfaceTensorProtoOrBuilder
-
addVariantValBuilder
public VariantTensorDataProto.Builder addVariantValBuilder()
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
addVariantValBuilder
public VariantTensorDataProto.Builder addVariantValBuilder(int index)
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
getVariantValBuilderList
public java.util.List<VariantTensorDataProto.Builder> getVariantValBuilderList()
DT_VARIANT
repeated .org.platanios.tensorflow.proto.VariantTensorDataProto variant_val = 15;
-
getUint32ValList
public java.util.List<java.lang.Integer> getUint32ValList()
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];
- Specified by:
getUint32ValList
in interfaceTensorProtoOrBuilder
- Returns:
- A list containing the uint32Val.
-
getUint32ValCount
public int getUint32ValCount()
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];
- Specified by:
getUint32ValCount
in interfaceTensorProtoOrBuilder
- Returns:
- The count of uint32Val.
-
getUint32Val
public int getUint32Val(int index)
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];
- Specified by:
getUint32Val
in interfaceTensorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The uint32Val at the given index.
-
setUint32Val
public TensorProto.Builder setUint32Val(int index, int value)
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The uint32Val to set.- Returns:
- This builder for chaining.
-
addUint32Val
public TensorProto.Builder addUint32Val(int value)
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];
- Parameters:
value
- The uint32Val to add.- Returns:
- This builder for chaining.
-
addAllUint32Val
public TensorProto.Builder addAllUint32Val(java.lang.Iterable<? extends java.lang.Integer> values)
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];
- Parameters:
values
- The uint32Val to add.- Returns:
- This builder for chaining.
-
clearUint32Val
public TensorProto.Builder clearUint32Val()
DT_UINT32
repeated uint32 uint32_val = 16 [packed = true];
- Returns:
- This builder for chaining.
-
getUint64ValList
public java.util.List<java.lang.Long> getUint64ValList()
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];
- Specified by:
getUint64ValList
in interfaceTensorProtoOrBuilder
- Returns:
- A list containing the uint64Val.
-
getUint64ValCount
public int getUint64ValCount()
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];
- Specified by:
getUint64ValCount
in interfaceTensorProtoOrBuilder
- Returns:
- The count of uint64Val.
-
getUint64Val
public long getUint64Val(int index)
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];
- Specified by:
getUint64Val
in interfaceTensorProtoOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The uint64Val at the given index.
-
setUint64Val
public TensorProto.Builder setUint64Val(int index, long value)
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];
- Parameters:
index
- The index to set the value at.value
- The uint64Val to set.- Returns:
- This builder for chaining.
-
addUint64Val
public TensorProto.Builder addUint64Val(long value)
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];
- Parameters:
value
- The uint64Val to add.- Returns:
- This builder for chaining.
-
addAllUint64Val
public TensorProto.Builder addAllUint64Val(java.lang.Iterable<? extends java.lang.Long> values)
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];
- Parameters:
values
- The uint64Val to add.- Returns:
- This builder for chaining.
-
clearUint64Val
public TensorProto.Builder clearUint64Val()
DT_UINT64
repeated uint64 uint64_val = 17 [packed = true];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final TensorProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
mergeUnknownFields
public final TensorProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorProto.Builder>
-
-