public static final class TensorMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder> implements TensorMetadataOrBuilder
Metadata for a single tensor in the Snapshot Record.Protobuf type
tensorflow.data.experimental.TensorMetadata
Modifier and Type | Method and Description |
---|---|
TensorMetadata.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TensorMetadata |
build() |
TensorMetadata |
buildPartial() |
TensorMetadata.Builder |
clear() |
TensorMetadata.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TensorMetadata.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TensorMetadata.Builder |
clearTensorShape()
.tensorflow.TensorShapeProto tensor_shape = 2; |
TensorMetadata.Builder |
clearTensorSizeBytes()
Number of uncompressed bytes used to store the tensor representation.
|
TensorMetadata.Builder |
clone() |
TensorMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TensorShapeProto |
getTensorShape()
.tensorflow.TensorShapeProto tensor_shape = 2; |
TensorShapeProto.Builder |
getTensorShapeBuilder()
.tensorflow.TensorShapeProto tensor_shape = 2; |
TensorShapeProtoOrBuilder |
getTensorShapeOrBuilder()
.tensorflow.TensorShapeProto tensor_shape = 2; |
long |
getTensorSizeBytes()
Number of uncompressed bytes used to store the tensor representation.
|
boolean |
hasTensorShape()
.tensorflow.TensorShapeProto tensor_shape = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TensorMetadata.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TensorMetadata.Builder |
mergeFrom(com.google.protobuf.Message other) |
TensorMetadata.Builder |
mergeFrom(TensorMetadata other) |
TensorMetadata.Builder |
mergeTensorShape(TensorShapeProto value)
.tensorflow.TensorShapeProto tensor_shape = 2; |
TensorMetadata.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TensorMetadata.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TensorMetadata.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TensorMetadata.Builder |
setTensorShape(TensorShapeProto.Builder builderForValue)
.tensorflow.TensorShapeProto tensor_shape = 2; |
TensorMetadata.Builder |
setTensorShape(TensorShapeProto value)
.tensorflow.TensorShapeProto tensor_shape = 2; |
TensorMetadata.Builder |
setTensorSizeBytes(long value)
Number of uncompressed bytes used to store the tensor representation.
|
TensorMetadata.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder>
public TensorMetadata.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder>
public TensorMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TensorMetadata build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TensorMetadata buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TensorMetadata.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder>
public TensorMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder>
public TensorMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder>
public TensorMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder>
public TensorMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder>
public TensorMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder>
public TensorMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TensorMetadata.Builder>
public TensorMetadata.Builder mergeFrom(TensorMetadata other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder>
public TensorMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TensorMetadata.Builder>
IOException
public boolean hasTensorShape()
.tensorflow.TensorShapeProto tensor_shape = 2;
hasTensorShape
in interface TensorMetadataOrBuilder
public TensorShapeProto getTensorShape()
.tensorflow.TensorShapeProto tensor_shape = 2;
getTensorShape
in interface TensorMetadataOrBuilder
public TensorMetadata.Builder setTensorShape(TensorShapeProto value)
.tensorflow.TensorShapeProto tensor_shape = 2;
public TensorMetadata.Builder setTensorShape(TensorShapeProto.Builder builderForValue)
.tensorflow.TensorShapeProto tensor_shape = 2;
public TensorMetadata.Builder mergeTensorShape(TensorShapeProto value)
.tensorflow.TensorShapeProto tensor_shape = 2;
public TensorMetadata.Builder clearTensorShape()
.tensorflow.TensorShapeProto tensor_shape = 2;
public TensorShapeProto.Builder getTensorShapeBuilder()
.tensorflow.TensorShapeProto tensor_shape = 2;
public TensorShapeProtoOrBuilder getTensorShapeOrBuilder()
.tensorflow.TensorShapeProto tensor_shape = 2;
getTensorShapeOrBuilder
in interface TensorMetadataOrBuilder
public long getTensorSizeBytes()
Number of uncompressed bytes used to store the tensor representation.
int64 tensor_size_bytes = 3;
getTensorSizeBytes
in interface TensorMetadataOrBuilder
public TensorMetadata.Builder setTensorSizeBytes(long value)
Number of uncompressed bytes used to store the tensor representation.
int64 tensor_size_bytes = 3;
public TensorMetadata.Builder clearTensorSizeBytes()
Number of uncompressed bytes used to store the tensor representation.
int64 tensor_size_bytes = 3;
public final TensorMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder>
public final TensorMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TensorMetadata.Builder>
Copyright © 2015–2022. All rights reserved.