Package org.tensorflow.framework
Class TensorDescription.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
- org.tensorflow.framework.TensorDescription.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,TensorDescriptionOrBuilder
- Enclosing class:
- TensorDescription
public static final class TensorDescription.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder> implements TensorDescriptionOrBuilder
Protobuf typetensorflow.TensorDescription
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TensorDescription.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TensorDescriptionbuild()TensorDescriptionbuildPartial()TensorDescription.Builderclear()TensorDescription.BuilderclearAllocationDescription()Information about the size and allocator used for the dataTensorDescription.BuilderclearDtype()Data type of tensor elementsTensorDescription.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TensorDescription.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TensorDescription.BuilderclearShape()Shape of the tensor.TensorDescription.Builderclone()AllocationDescriptiongetAllocationDescription()Information about the size and allocator used for the dataAllocationDescription.BuildergetAllocationDescriptionBuilder()Information about the size and allocator used for the dataAllocationDescriptionOrBuildergetAllocationDescriptionOrBuilder()Information about the size and allocator used for the dataTensorDescriptiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DataTypegetDtype()Data type of tensor elementsintgetDtypeValue()Data type of tensor elementsTensorShapeProtogetShape()Shape of the tensor.TensorShapeProto.BuildergetShapeBuilder()Shape of the tensor.TensorShapeProtoOrBuildergetShapeOrBuilder()Shape of the tensor.booleanhasAllocationDescription()Information about the size and allocator used for the databooleanhasShape()Shape of the tensor.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TensorDescription.BuildermergeAllocationDescription(AllocationDescription value)Information about the size and allocator used for the dataTensorDescription.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TensorDescription.BuildermergeFrom(com.google.protobuf.Message other)TensorDescription.BuildermergeFrom(TensorDescription other)TensorDescription.BuildermergeShape(TensorShapeProto value)Shape of the tensor.TensorDescription.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TensorDescription.BuildersetAllocationDescription(AllocationDescription value)Information about the size and allocator used for the dataTensorDescription.BuildersetAllocationDescription(AllocationDescription.Builder builderForValue)Information about the size and allocator used for the dataTensorDescription.BuildersetDtype(DataType value)Data type of tensor elementsTensorDescription.BuildersetDtypeValue(int value)Data type of tensor elementsTensorDescription.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TensorDescription.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)TensorDescription.BuildersetShape(TensorShapeProto value)Shape of the tensor.TensorDescription.BuildersetShape(TensorShapeProto.Builder builderForValue)Shape of the tensor.TensorDescription.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
clear
public TensorDescription.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<TensorDescription.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<TensorDescription.Builder>
-
getDefaultInstanceForType
public TensorDescription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TensorDescription build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TensorDescription buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TensorDescription.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<TensorDescription.Builder>
-
setField
public TensorDescription.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
clearField
public TensorDescription.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
clearOneof
public TensorDescription.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
setRepeatedField
public TensorDescription.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
addRepeatedField
public TensorDescription.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
mergeFrom
public TensorDescription.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TensorDescription.Builder>
-
mergeFrom
public TensorDescription.Builder mergeFrom(TensorDescription other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
mergeFrom
public TensorDescription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TensorDescription.Builder>- Throws:
java.io.IOException
-
getDtypeValue
public int getDtypeValue()
Data type of tensor elements
.tensorflow.DataType dtype = 1;- Specified by:
getDtypeValuein interfaceTensorDescriptionOrBuilder- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
public TensorDescription.Builder setDtypeValue(int value)
Data type of tensor elements
.tensorflow.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()
Data type of tensor elements
.tensorflow.DataType dtype = 1;- Specified by:
getDtypein interfaceTensorDescriptionOrBuilder- Returns:
- The dtype.
-
setDtype
public TensorDescription.Builder setDtype(DataType value)
Data type of tensor elements
.tensorflow.DataType dtype = 1;- Parameters:
value- The dtype to set.- Returns:
- This builder for chaining.
-
clearDtype
public TensorDescription.Builder clearDtype()
Data type of tensor elements
.tensorflow.DataType dtype = 1;- Returns:
- This builder for chaining.
-
hasShape
public boolean hasShape()
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;- Specified by:
hasShapein interfaceTensorDescriptionOrBuilder- Returns:
- Whether the shape field is set.
-
getShape
public TensorShapeProto getShape()
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapein interfaceTensorDescriptionOrBuilder- Returns:
- The shape.
-
setShape
public TensorDescription.Builder setShape(TensorShapeProto value)
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
-
setShape
public TensorDescription.Builder setShape(TensorShapeProto.Builder builderForValue)
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
-
mergeShape
public TensorDescription.Builder mergeShape(TensorShapeProto value)
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
-
clearShape
public TensorDescription.Builder clearShape()
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
-
getShapeBuilder
public TensorShapeProto.Builder getShapeBuilder()
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;
-
getShapeOrBuilder
public TensorShapeProtoOrBuilder getShapeOrBuilder()
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapeOrBuilderin interfaceTensorDescriptionOrBuilder
-
hasAllocationDescription
public boolean hasAllocationDescription()
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;- Specified by:
hasAllocationDescriptionin interfaceTensorDescriptionOrBuilder- Returns:
- Whether the allocationDescription field is set.
-
getAllocationDescription
public AllocationDescription getAllocationDescription()
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;- Specified by:
getAllocationDescriptionin interfaceTensorDescriptionOrBuilder- Returns:
- The allocationDescription.
-
setAllocationDescription
public TensorDescription.Builder setAllocationDescription(AllocationDescription value)
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
-
setAllocationDescription
public TensorDescription.Builder setAllocationDescription(AllocationDescription.Builder builderForValue)
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
-
mergeAllocationDescription
public TensorDescription.Builder mergeAllocationDescription(AllocationDescription value)
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
-
clearAllocationDescription
public TensorDescription.Builder clearAllocationDescription()
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
-
getAllocationDescriptionBuilder
public AllocationDescription.Builder getAllocationDescriptionBuilder()
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;
-
getAllocationDescriptionOrBuilder
public AllocationDescriptionOrBuilder getAllocationDescriptionOrBuilder()
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;- Specified by:
getAllocationDescriptionOrBuilderin interfaceTensorDescriptionOrBuilder
-
setUnknownFields
public final TensorDescription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
mergeUnknownFields
public final TensorDescription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
-