Package org.tensorflow.framework
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.framework.TensorDescription.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,TensorDescriptionOrBuilder
- Enclosing class:
TensorDescription
public static final class TensorDescription.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
implements TensorDescriptionOrBuilder
Protobuf type
tensorflow.TensorDescription-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Information about the size and allocator used for the dataData type of tensor elementsclearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Shape 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 com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanInformation about the size and allocator used for the datamergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(TensorDescription other) mergeShape(TensorShapeProto value) Shape of the tensor.mergeUnknownFields(com.google.protobuf.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 elementssetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setShape(TensorShapeProto value) Shape of the tensor.setShape(TensorShapeProto.Builder builderForValue) Shape of the tensor.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<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
- 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<TensorDescription.Builder>
-
setField
public TensorDescription.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<TensorDescription.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
clearOneof
- 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TensorDescription.Builder>
-
mergeFrom
-
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 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:
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
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>
-