Package org.platanios.tensorflow.proto
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.platanios.tensorflow.proto.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 typeorg.platanios.tensorflow.proto.TensorDescription
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TensorDescription.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
TensorDescription
build()
TensorDescription
buildPartial()
TensorDescription.Builder
clear()
TensorDescription.Builder
clearAllocationDescription()
Information about the size and allocator used for the dataTensorDescription.Builder
clearDtype()
Data type of tensor elementsTensorDescription.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
TensorDescription.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
TensorDescription.Builder
clearShape()
Shape of the tensor.TensorDescription.Builder
clone()
AllocationDescription
getAllocationDescription()
Information about the size and allocator used for the dataAllocationDescription.Builder
getAllocationDescriptionBuilder()
Information about the size and allocator used for the dataAllocationDescriptionOrBuilder
getAllocationDescriptionOrBuilder()
Information about the size and allocator used for the dataTensorDescription
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
DataType
getDtype()
Data type of tensor elementsint
getDtypeValue()
Data type of tensor elementsTensorShapeProto
getShape()
Shape of the tensor.TensorShapeProto.Builder
getShapeBuilder()
Shape of the tensor.TensorShapeProtoOrBuilder
getShapeOrBuilder()
Shape of the tensor.boolean
hasAllocationDescription()
Information about the size and allocator used for the databoolean
hasShape()
Shape of the tensor.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
TensorDescription.Builder
mergeAllocationDescription(AllocationDescription value)
Information about the size and allocator used for the dataTensorDescription.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
TensorDescription.Builder
mergeFrom(com.google.protobuf.Message other)
TensorDescription.Builder
mergeFrom(TensorDescription other)
TensorDescription.Builder
mergeShape(TensorShapeProto value)
Shape of the tensor.TensorDescription.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
TensorDescription.Builder
setAllocationDescription(AllocationDescription value)
Information about the size and allocator used for the dataTensorDescription.Builder
setAllocationDescription(AllocationDescription.Builder builderForValue)
Information about the size and allocator used for the dataTensorDescription.Builder
setDtype(DataType value)
Data type of tensor elementsTensorDescription.Builder
setDtypeValue(int value)
Data type of tensor elementsTensorDescription.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
TensorDescription.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
TensorDescription.Builder
setShape(TensorShapeProto value)
Shape of the tensor.TensorDescription.Builder
setShape(TensorShapeProto.Builder builderForValue)
Shape of the tensor.TensorDescription.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
clear
public TensorDescription.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<TensorDescription.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<TensorDescription.Builder>
-
getDefaultInstanceForType
public TensorDescription getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TensorDescription build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TensorDescription buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TensorDescription.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<TensorDescription.Builder>
-
setField
public TensorDescription.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<TensorDescription.Builder>
-
clearField
public TensorDescription.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<TensorDescription.Builder>
-
clearOneof
public TensorDescription.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<TensorDescription.Builder>
-
setRepeatedField
public TensorDescription.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<TensorDescription.Builder>
-
addRepeatedField
public TensorDescription.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<TensorDescription.Builder>
-
mergeFrom
public TensorDescription.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TensorDescription.Builder>
-
mergeFrom
public TensorDescription.Builder mergeFrom(TensorDescription other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TensorDescription.Builder>
- Throws:
java.io.IOException
-
getDtypeValue
public int getDtypeValue()
Data type of tensor elements
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Specified by:
getDtypeValue
in interfaceTensorDescriptionOrBuilder
- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
public TensorDescription.Builder setDtypeValue(int value)
Data type of tensor elements
.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()
Data type of tensor elements
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Specified by:
getDtype
in interfaceTensorDescriptionOrBuilder
- Returns:
- The dtype.
-
setDtype
public TensorDescription.Builder setDtype(DataType value)
Data type of tensor elements
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Parameters:
value
- The dtype to set.- Returns:
- This builder for chaining.
-
clearDtype
public TensorDescription.Builder clearDtype()
Data type of tensor elements
.org.platanios.tensorflow.proto.DataType dtype = 1;
- Returns:
- This builder for chaining.
-
hasShape
public boolean hasShape()
Shape of the tensor.
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
- Specified by:
hasShape
in interfaceTensorDescriptionOrBuilder
- Returns:
- Whether the shape field is set.
-
getShape
public TensorShapeProto getShape()
Shape of the tensor.
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
- Specified by:
getShape
in interfaceTensorDescriptionOrBuilder
- Returns:
- The shape.
-
setShape
public TensorDescription.Builder setShape(TensorShapeProto value)
Shape of the tensor.
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
-
setShape
public TensorDescription.Builder setShape(TensorShapeProto.Builder builderForValue)
Shape of the tensor.
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
-
mergeShape
public TensorDescription.Builder mergeShape(TensorShapeProto value)
Shape of the tensor.
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
-
clearShape
public TensorDescription.Builder clearShape()
Shape of the tensor.
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
-
getShapeBuilder
public TensorShapeProto.Builder getShapeBuilder()
Shape of the tensor.
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
-
getShapeOrBuilder
public TensorShapeProtoOrBuilder getShapeOrBuilder()
Shape of the tensor.
.org.platanios.tensorflow.proto.TensorShapeProto shape = 2;
- Specified by:
getShapeOrBuilder
in interfaceTensorDescriptionOrBuilder
-
hasAllocationDescription
public boolean hasAllocationDescription()
Information about the size and allocator used for the data
.org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
- Specified by:
hasAllocationDescription
in interfaceTensorDescriptionOrBuilder
- Returns:
- Whether the allocationDescription field is set.
-
getAllocationDescription
public AllocationDescription getAllocationDescription()
Information about the size and allocator used for the data
.org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
- Specified by:
getAllocationDescription
in interfaceTensorDescriptionOrBuilder
- Returns:
- The allocationDescription.
-
setAllocationDescription
public TensorDescription.Builder setAllocationDescription(AllocationDescription value)
Information about the size and allocator used for the data
.org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
-
setAllocationDescription
public TensorDescription.Builder setAllocationDescription(AllocationDescription.Builder builderForValue)
Information about the size and allocator used for the data
.org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
-
mergeAllocationDescription
public TensorDescription.Builder mergeAllocationDescription(AllocationDescription value)
Information about the size and allocator used for the data
.org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
-
clearAllocationDescription
public TensorDescription.Builder clearAllocationDescription()
Information about the size and allocator used for the data
.org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
-
getAllocationDescriptionBuilder
public AllocationDescription.Builder getAllocationDescriptionBuilder()
Information about the size and allocator used for the data
.org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
-
getAllocationDescriptionOrBuilder
public AllocationDescriptionOrBuilder getAllocationDescriptionOrBuilder()
Information about the size and allocator used for the data
.org.platanios.tensorflow.proto.AllocationDescription allocation_description = 4;
- Specified by:
getAllocationDescriptionOrBuilder
in interfaceTensorDescriptionOrBuilder
-
setUnknownFields
public final TensorDescription.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
mergeUnknownFields
public final TensorDescription.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TensorDescription.Builder>
-
-