Package org.tensorflow.framework
Class VariantTensorDataProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
- org.tensorflow.framework.VariantTensorDataProto.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,VariantTensorDataProtoOrBuilder
- Enclosing class:
- VariantTensorDataProto
public static final class VariantTensorDataProto.Builder extends com.google.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.BuilderaddAllTensors(java.lang.Iterable<? extends TensorProto> values)Tensors contained within objects being serialized.VariantTensorDataProto.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)VariantTensorDataProto.BuilderaddTensors(int index, TensorProto value)Tensors contained within objects being serialized.VariantTensorDataProto.BuilderaddTensors(int index, TensorProto.Builder builderForValue)Tensors contained within objects being serialized.VariantTensorDataProto.BuilderaddTensors(TensorProto value)Tensors contained within objects being serialized.VariantTensorDataProto.BuilderaddTensors(TensorProto.Builder builderForValue)Tensors contained within objects being serialized.TensorProto.BuilderaddTensorsBuilder()Tensors contained within objects being serialized.TensorProto.BuilderaddTensorsBuilder(int index)Tensors contained within objects being serialized.VariantTensorDataProtobuild()VariantTensorDataProtobuildPartial()VariantTensorDataProto.Builderclear()VariantTensorDataProto.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)VariantTensorDataProto.BuilderclearMetadata()Portions of the object that are not Tensors.VariantTensorDataProto.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)VariantTensorDataProto.BuilderclearTensors()Tensors contained within objects being serialized.VariantTensorDataProto.BuilderclearTypeName()Name of the type of objects being serialized.VariantTensorDataProto.Builderclone()VariantTensorDataProtogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.ByteStringgetMetadata()Portions of the object that are not Tensors.TensorProtogetTensors(int index)Tensors contained within objects being serialized.TensorProto.BuildergetTensorsBuilder(int index)Tensors contained within objects being serialized.java.util.List<TensorProto.Builder>getTensorsBuilderList()Tensors contained within objects being serialized.intgetTensorsCount()Tensors contained within objects being serialized.java.util.List<TensorProto>getTensorsList()Tensors contained within objects being serialized.TensorProtoOrBuildergetTensorsOrBuilder(int index)Tensors contained within objects being serialized.java.util.List<? extends TensorProtoOrBuilder>getTensorsOrBuilderList()Tensors contained within objects being serialized.java.lang.StringgetTypeName()Name of the type of objects being serialized.com.google.protobuf.ByteStringgetTypeNameBytes()Name of the type of objects being serialized.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()VariantTensorDataProto.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)VariantTensorDataProto.BuildermergeFrom(com.google.protobuf.Message other)VariantTensorDataProto.BuildermergeFrom(VariantTensorDataProto other)VariantTensorDataProto.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)VariantTensorDataProto.BuilderremoveTensors(int index)Tensors contained within objects being serialized.VariantTensorDataProto.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)VariantTensorDataProto.BuildersetMetadata(com.google.protobuf.ByteString value)Portions of the object that are not Tensors.VariantTensorDataProto.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)VariantTensorDataProto.BuildersetTensors(int index, TensorProto value)Tensors contained within objects being serialized.VariantTensorDataProto.BuildersetTensors(int index, TensorProto.Builder builderForValue)Tensors contained within objects being serialized.VariantTensorDataProto.BuildersetTypeName(java.lang.String value)Name of the type of objects being serialized.VariantTensorDataProto.BuildersetTypeNameBytes(com.google.protobuf.ByteString value)Name of the type of objects being serialized.VariantTensorDataProto.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<VariantTensorDataProto.Builder>
-
clear
public VariantTensorDataProto.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<VariantTensorDataProto.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<VariantTensorDataProto.Builder>
-
getDefaultInstanceForType
public VariantTensorDataProto getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public VariantTensorDataProto build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VariantTensorDataProto buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VariantTensorDataProto.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<VariantTensorDataProto.Builder>
-
setField
public VariantTensorDataProto.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<VariantTensorDataProto.Builder>
-
clearField
public VariantTensorDataProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
clearOneof
public VariantTensorDataProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
setRepeatedField
public VariantTensorDataProto.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<VariantTensorDataProto.Builder>
-
addRepeatedField
public VariantTensorDataProto.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<VariantTensorDataProto.Builder>
-
mergeFrom
public VariantTensorDataProto.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VariantTensorDataProto.Builder>
-
mergeFrom
public VariantTensorDataProto.Builder mergeFrom(VariantTensorDataProto other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
mergeFrom
public VariantTensorDataProto.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<VariantTensorDataProto.Builder>- Throws:
java.io.IOException
-
getTypeName
public java.lang.String getTypeName()
Name of the type of objects being serialized.
string type_name = 1;- Specified by:
getTypeNamein interfaceVariantTensorDataProtoOrBuilder- Returns:
- The typeName.
-
getTypeNameBytes
public com.google.protobuf.ByteString getTypeNameBytes()
Name of the type of objects being serialized.
string type_name = 1;- Specified by:
getTypeNameBytesin interfaceVariantTensorDataProtoOrBuilder- Returns:
- The bytes for typeName.
-
setTypeName
public VariantTensorDataProto.Builder setTypeName(java.lang.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(com.google.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 com.google.protobuf.ByteString getMetadata()
Portions of the object that are not Tensors.
bytes metadata = 2;- Specified by:
getMetadatain interfaceVariantTensorDataProtoOrBuilder- Returns:
- The metadata.
-
setMetadata
public VariantTensorDataProto.Builder setMetadata(com.google.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 java.util.List<TensorProto> getTensorsList()
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;- Specified by:
getTensorsListin interfaceVariantTensorDataProtoOrBuilder
-
getTensorsCount
public int getTensorsCount()
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;- Specified by:
getTensorsCountin interfaceVariantTensorDataProtoOrBuilder
-
getTensors
public TensorProto getTensors(int index)
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;- Specified by:
getTensorsin 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(java.lang.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:
getTensorsOrBuilderin interfaceVariantTensorDataProtoOrBuilder
-
getTensorsOrBuilderList
public java.util.List<? extends TensorProtoOrBuilder> getTensorsOrBuilderList()
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;- Specified by:
getTensorsOrBuilderListin 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 java.util.List<TensorProto.Builder> getTensorsBuilderList()
Tensors contained within objects being serialized.
repeated .tensorflow.TensorProto tensors = 3;
-
setUnknownFields
public final VariantTensorDataProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
mergeUnknownFields
public final VariantTensorDataProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<VariantTensorDataProto.Builder>
-
-