Class TensorDescription.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TensorDescription.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
org.tensorflow.proto.TensorDescription.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, TensorDescriptionOrBuilder
- Enclosing class:
TensorDescription
public static final class TensorDescription.Builder
extends GeneratedMessageV3.Builder<TensorDescription.Builder>
implements TensorDescriptionOrBuilder
Protobuf type
tensorflow.TensorDescription-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()Information about the size and allocator used for the dataData type of tensor elementsShape of the tensor.clone()Information about the size and allocator used for the dataInformation about the size and allocator used for the dataInformation about the size and allocator used for the datastatic final Descriptors.DescriptorgetDtype()Data type of tensor elementsintData type of tensor elementsgetShape()Shape of the tensor.Shape of the tensor.Shape of the tensor.booleanInformation about the size and allocator used for the databooleanhasShape()Shape of the tensor.protected GeneratedMessageV3.FieldAccessorTablefinal booleanInformation about the size and allocator used for the datamergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(TensorDescription other) mergeShape(TensorShapeProto value) Shape of the tensor.mergeUnknownFields(UnknownFieldSet unknownFields) Information about the size and allocator used for the datasetAllocationDescription(AllocationDescription.Builder builderForValue) Information about the size and allocator used for the dataData type of tensor elementssetDtypeValue(int value) Data type of tensor elementssetField(Descriptors.FieldDescriptor field, Object value) setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setShape(TensorShapeProto value) Shape of the tensor.setShape(TensorShapeProto.Builder builderForValue) Shape of the tensor.setUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<TensorDescription.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<TensorDescription.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<TensorDescription.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<TensorDescription.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<TensorDescription.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<TensorDescription.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<TensorDescription.Builder>
-
setRepeatedField
public TensorDescription.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<TensorDescription.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<TensorDescription.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<TensorDescription.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<TensorDescription.Builder>
-
mergeFrom
public TensorDescription.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<TensorDescription.Builder>- Throws:
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
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
Data type of tensor elements
.tensorflow.DataType dtype = 1;- Specified by:
getDtypein interfaceTensorDescriptionOrBuilder- Returns:
- The dtype.
-
setDtype
Data type of tensor elements
.tensorflow.DataType dtype = 1;- Parameters:
value- The dtype to set.- Returns:
- This builder for chaining.
-
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
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2;- Specified by:
getShapein interfaceTensorDescriptionOrBuilder- Returns:
- The shape.
-
setShape
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2; -
setShape
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2; -
mergeShape
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2; -
clearShape
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2; -
getShapeBuilder
Shape of the tensor.
.tensorflow.TensorShapeProto shape = 2; -
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
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;- Specified by:
getAllocationDescriptionin interfaceTensorDescriptionOrBuilder- Returns:
- The allocationDescription.
-
setAllocationDescription
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
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4; -
clearAllocationDescription
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4; -
getAllocationDescriptionBuilder
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4; -
getAllocationDescriptionOrBuilder
Information about the size and allocator used for the data
.tensorflow.AllocationDescription allocation_description = 4;- Specified by:
getAllocationDescriptionOrBuilderin interfaceTensorDescriptionOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<TensorDescription.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<TensorDescription.Builder>
-