Package org.tensorflow.framework
Class VariantTensorDataProto.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
- org.tensorflow.framework.VariantTensorDataProto.Builder
-
- All Implemented Interfaces:
Cloneable
,org.nd4j.shade.protobuf.Message.Builder
,org.nd4j.shade.protobuf.MessageLite.Builder
,org.nd4j.shade.protobuf.MessageLiteOrBuilder
,org.nd4j.shade.protobuf.MessageOrBuilder
,VariantTensorDataProtoOrBuilder
- Enclosing class:
- VariantTensorDataProto
public static final class VariantTensorDataProto.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder> implements VariantTensorDataProtoOrBuilder
Protocol buffer representing the serialization format of DT_VARIANT tensors.
Protobuf typetensorflow.VariantTensorDataProto
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VariantTensorDataProto.Builder
addAllTensors(Iterable<? extends TensorProto> values)
Tensors contained within objects being serialized.VariantTensorDataProto.Builder
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
VariantTensorDataProto.Builder
addTensors(int index, TensorProto value)
Tensors contained within objects being serialized.VariantTensorDataProto.Builder
addTensors(int index, TensorProto.Builder builderForValue)
Tensors contained within objects being serialized.VariantTensorDataProto.Builder
addTensors(TensorProto value)
Tensors contained within objects being serialized.VariantTensorDataProto.Builder
addTensors(TensorProto.Builder builderForValue)
Tensors contained within objects being serialized.TensorProto.Builder
addTensorsBuilder()
Tensors contained within objects being serialized.TensorProto.Builder
addTensorsBuilder(int index)
Tensors contained within objects being serialized.VariantTensorDataProto
build()
VariantTensorDataProto
buildPartial()
VariantTensorDataProto.Builder
clear()
VariantTensorDataProto.Builder
clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
VariantTensorDataProto.Builder
clearMetadata()
Portions of the object that are not Tensors.VariantTensorDataProto.Builder
clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
VariantTensorDataProto.Builder
clearTensors()
Tensors contained within objects being serialized.VariantTensorDataProto.Builder
clearTypeName()
Name of the type of objects being serialized.VariantTensorDataProto.Builder
clone()
VariantTensorDataProto
getDefaultInstanceForType()
static org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptor()
org.nd4j.shade.protobuf.Descriptors.Descriptor
getDescriptorForType()
org.nd4j.shade.protobuf.ByteString
getMetadata()
Portions of the object that are not Tensors.TensorProto
getTensors(int index)
Tensors contained within objects being serialized.TensorProto.Builder
getTensorsBuilder(int index)
Tensors contained within objects being serialized.List<TensorProto.Builder>
getTensorsBuilderList()
Tensors contained within objects being serialized.int
getTensorsCount()
Tensors contained within objects being serialized.List<TensorProto>
getTensorsList()
Tensors contained within objects being serialized.TensorProtoOrBuilder
getTensorsOrBuilder(int index)
Tensors contained within objects being serialized.List<? extends TensorProtoOrBuilder>
getTensorsOrBuilderList()
Tensors contained within objects being serialized.String
getTypeName()
Name of the type of objects being serialized.org.nd4j.shade.protobuf.ByteString
getTypeNameBytes()
Name of the type of objects being serialized.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
VariantTensorDataProto.Builder
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
VariantTensorDataProto.Builder
mergeFrom(org.nd4j.shade.protobuf.Message other)
VariantTensorDataProto.Builder
mergeFrom(VariantTensorDataProto other)
VariantTensorDataProto.Builder
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
VariantTensorDataProto.Builder
removeTensors(int index)
Tensors contained within objects being serialized.VariantTensorDataProto.Builder
setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
VariantTensorDataProto.Builder
setMetadata(org.nd4j.shade.protobuf.ByteString value)
Portions of the object that are not Tensors.VariantTensorDataProto.Builder
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
VariantTensorDataProto.Builder
setTensors(int index, TensorProto value)
Tensors contained within objects being serialized.VariantTensorDataProto.Builder
setTensors(int index, TensorProto.Builder builderForValue)
Tensors contained within objects being serialized.VariantTensorDataProto.Builder
setTypeName(String value)
Name of the type of objects being serialized.VariantTensorDataProto.Builder
setTypeNameBytes(org.nd4j.shade.protobuf.ByteString value)
Name of the type of objects being serialized.VariantTensorDataProto.Builder
setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class org.nd4j.shade.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 org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
clear
public VariantTensorDataProto.Builder clear()
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clear
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clear
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
getDefaultInstanceForType
public VariantTensorDataProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public VariantTensorDataProto build()
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
build
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public VariantTensorDataProto buildPartial()
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
buildPartial
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public VariantTensorDataProto.Builder clone()
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
clone
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
clone
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
setField
public VariantTensorDataProto.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
clearField
public VariantTensorDataProto.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
clearOneof
public VariantTensorDataProto.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
clearOneof
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
setRepeatedField
public VariantTensorDataProto.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
addRepeatedField
public VariantTensorDataProto.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
mergeFrom
public VariantTensorDataProto.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<VariantTensorDataProto.Builder>
-
mergeFrom
public VariantTensorDataProto.Builder mergeFrom(VariantTensorDataProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
mergeFrom
public VariantTensorDataProto.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classorg.nd4j.shade.protobuf.AbstractMessage.Builder<VariantTensorDataProto.Builder>
- Throws:
IOException
-
getTypeName
public String getTypeName()
Name of the type of objects being serialized.
string type_name = 1;
- Specified by:
getTypeName
in interfaceVariantTensorDataProtoOrBuilder
- Returns:
- The typeName.
-
getTypeNameBytes
public org.nd4j.shade.protobuf.ByteString getTypeNameBytes()
Name of the type of objects being serialized.
string type_name = 1;
- Specified by:
getTypeNameBytes
in interfaceVariantTensorDataProtoOrBuilder
- Returns:
- The bytes for typeName.
-
setTypeName
public VariantTensorDataProto.Builder setTypeName(String value)
Name of the type of objects being serialized.
string type_name = 1;
- Parameters:
value
- The typeName to set.- Returns:
- This builder for chaining.
-
clearTypeName
public VariantTensorDataProto.Builder clearTypeName()
Name of the type of objects being serialized.
string type_name = 1;
- Returns:
- This builder for chaining.
-
setTypeNameBytes
public VariantTensorDataProto.Builder setTypeNameBytes(org.nd4j.shade.protobuf.ByteString value)
Name of the type of objects being serialized.
string type_name = 1;
- Parameters:
value
- The bytes for typeName to set.- Returns:
- This builder for chaining.
-
getMetadata
public org.nd4j.shade.protobuf.ByteString getMetadata()
Portions of the object that are not Tensors.
bytes metadata = 2;
- Specified by:
getMetadata
in interfaceVariantTensorDataProtoOrBuilder
- Returns:
- The metadata.
-
setMetadata
public VariantTensorDataProto.Builder setMetadata(org.nd4j.shade.protobuf.ByteString value)
Portions of the object that are not Tensors.
bytes metadata = 2;
- Parameters:
value
- The metadata to set.- Returns:
- This builder for chaining.
-
clearMetadata
public VariantTensorDataProto.Builder clearMetadata()
Portions of the object that are not Tensors.
bytes metadata = 2;
- Returns:
- This builder for chaining.
-
getTensorsList
public List<TensorProto> getTensorsList()
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
- Specified by:
getTensorsList
in interfaceVariantTensorDataProtoOrBuilder
-
getTensorsCount
public int getTensorsCount()
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
- Specified by:
getTensorsCount
in interfaceVariantTensorDataProtoOrBuilder
-
getTensors
public TensorProto getTensors(int index)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
- Specified by:
getTensors
in interfaceVariantTensorDataProtoOrBuilder
-
setTensors
public VariantTensorDataProto.Builder setTensors(int index, TensorProto value)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
setTensors
public VariantTensorDataProto.Builder setTensors(int index, TensorProto.Builder builderForValue)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
addTensors
public VariantTensorDataProto.Builder addTensors(TensorProto value)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
addTensors
public VariantTensorDataProto.Builder addTensors(int index, TensorProto value)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
addTensors
public VariantTensorDataProto.Builder addTensors(TensorProto.Builder builderForValue)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
addTensors
public VariantTensorDataProto.Builder addTensors(int index, TensorProto.Builder builderForValue)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
addAllTensors
public VariantTensorDataProto.Builder addAllTensors(Iterable<? extends TensorProto> values)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
clearTensors
public VariantTensorDataProto.Builder clearTensors()
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
removeTensors
public VariantTensorDataProto.Builder removeTensors(int index)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
getTensorsBuilder
public TensorProto.Builder getTensorsBuilder(int index)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
getTensorsOrBuilder
public TensorProtoOrBuilder getTensorsOrBuilder(int index)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
- Specified by:
getTensorsOrBuilder
in interfaceVariantTensorDataProtoOrBuilder
-
getTensorsOrBuilderList
public List<? extends TensorProtoOrBuilder> getTensorsOrBuilderList()
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
- Specified by:
getTensorsOrBuilderList
in interfaceVariantTensorDataProtoOrBuilder
-
addTensorsBuilder
public TensorProto.Builder addTensorsBuilder()
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
addTensorsBuilder
public TensorProto.Builder addTensorsBuilder(int index)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
getTensorsBuilderList
public List<TensorProto.Builder> getTensorsBuilderList()
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
setUnknownFields
public final VariantTensorDataProto.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
mergeUnknownFields
public final VariantTensorDataProto.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceorg.nd4j.shade.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
-