public static final class
ResourceHandleProto.Builder
Protocol buffer representing a handle to a tensorflow resource. Handles are not valid across executions, but can be serialized back and forth from within a single run.Protobuf type
tensorflow.ResourceHandleProto
Public Methods
ResourceHandleProto.Builder |
addAllDtypesAndShapes(Iterable<? extends ResourceHandleProto.DtypeAndShape> values)
Data types and shapes for the underlying resource. |
ResourceHandleProto.Builder |
addDtypesAndShapes(ResourceHandleProto.DtypeAndShape.Builder builderForValue)
Data types and shapes for the underlying resource. |
ResourceHandleProto.Builder |
addDtypesAndShapes(ResourceHandleProto.DtypeAndShape value)
Data types and shapes for the underlying resource. |
ResourceHandleProto.Builder |
addDtypesAndShapes(int index, ResourceHandleProto.DtypeAndShape value)
Data types and shapes for the underlying resource. |
ResourceHandleProto.Builder |
addDtypesAndShapes(int index, ResourceHandleProto.DtypeAndShape.Builder builderForValue)
Data types and shapes for the underlying resource. |
ResourceHandleProto.DtypeAndShape.Builder |
addDtypesAndShapesBuilder(int index)
Data types and shapes for the underlying resource. |
ResourceHandleProto.DtypeAndShape.Builder |
addDtypesAndShapesBuilder()
Data types and shapes for the underlying resource. |
ResourceHandleProto.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
ResourceHandleProto |
build()
|
ResourceHandleProto | |
ResourceHandleProto.Builder |
clear()
|
ResourceHandleProto.Builder |
clearContainer()
Container in which this resource is placed. |
ResourceHandleProto.Builder |
clearDevice()
Unique name for the device containing the resource. |
ResourceHandleProto.Builder |
clearDtypesAndShapes()
Data types and shapes for the underlying resource. |
ResourceHandleProto.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
|
ResourceHandleProto.Builder |
clearHashCode()
Hash code for the type of the resource. |
ResourceHandleProto.Builder |
clearMaybeTypeName()
For debug-only, the name of the type pointed to by this handle, if available. |
ResourceHandleProto.Builder |
clearName()
Unique name of this resource. |
ResourceHandleProto.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
|
ResourceHandleProto.Builder |
clone()
|
String |
getContainer()
Container in which this resource is placed. |
com.google.protobuf.ByteString |
getContainerBytes()
Container in which this resource is placed. |
ResourceHandleProto | |
final static com.google.protobuf.Descriptors.Descriptor | |
com.google.protobuf.Descriptors.Descriptor | |
String |
getDevice()
Unique name for the device containing the resource. |
com.google.protobuf.ByteString |
getDeviceBytes()
Unique name for the device containing the resource. |
ResourceHandleProto.DtypeAndShape |
getDtypesAndShapes(int index)
Data types and shapes for the underlying resource. |
ResourceHandleProto.DtypeAndShape.Builder |
getDtypesAndShapesBuilder(int index)
Data types and shapes for the underlying resource. |
List<ResourceHandleProto.DtypeAndShape.Builder> |
getDtypesAndShapesBuilderList()
Data types and shapes for the underlying resource. |
int |
getDtypesAndShapesCount()
Data types and shapes for the underlying resource. |
List<ResourceHandleProto.DtypeAndShape> |
getDtypesAndShapesList()
Data types and shapes for the underlying resource. |
ResourceHandleProto.DtypeAndShapeOrBuilder |
getDtypesAndShapesOrBuilder(int index)
Data types and shapes for the underlying resource. |
List<? extends ResourceHandleProto.DtypeAndShapeOrBuilder> |
getDtypesAndShapesOrBuilderList()
Data types and shapes for the underlying resource. |
long |
getHashCode()
Hash code for the type of the resource. |
String |
getMaybeTypeName()
For debug-only, the name of the type pointed to by this handle, if available. |
com.google.protobuf.ByteString |
getMaybeTypeNameBytes()
For debug-only, the name of the type pointed to by this handle, if available. |
String |
getName()
Unique name of this resource. |
com.google.protobuf.ByteString |
getNameBytes()
Unique name of this resource. |
final boolean | |
ResourceHandleProto.Builder |
mergeFrom(com.google.protobuf.Message other)
|
ResourceHandleProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
final ResourceHandleProto.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
ResourceHandleProto.Builder |
removeDtypesAndShapes(int index)
Data types and shapes for the underlying resource. |
ResourceHandleProto.Builder |
setContainer(String value)
Container in which this resource is placed. |
ResourceHandleProto.Builder |
setContainerBytes(com.google.protobuf.ByteString value)
Container in which this resource is placed. |
ResourceHandleProto.Builder |
setDevice(String value)
Unique name for the device containing the resource. |
ResourceHandleProto.Builder |
setDeviceBytes(com.google.protobuf.ByteString value)
Unique name for the device containing the resource. |
ResourceHandleProto.Builder |
setDtypesAndShapes(int index, ResourceHandleProto.DtypeAndShape.Builder builderForValue)
Data types and shapes for the underlying resource. |
ResourceHandleProto.Builder |
setDtypesAndShapes(int index, ResourceHandleProto.DtypeAndShape value)
Data types and shapes for the underlying resource. |
ResourceHandleProto.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
|
ResourceHandleProto.Builder |
setHashCode(long value)
Hash code for the type of the resource. |
ResourceHandleProto.Builder |
setMaybeTypeName(String value)
For debug-only, the name of the type pointed to by this handle, if available. |
ResourceHandleProto.Builder |
setMaybeTypeNameBytes(com.google.protobuf.ByteString value)
For debug-only, the name of the type pointed to by this handle, if available. |
ResourceHandleProto.Builder |
setName(String value)
Unique name of this resource. |
ResourceHandleProto.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Unique name of this resource. |
ResourceHandleProto.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
|
final ResourceHandleProto.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
|
Inherited Methods
Public Methods
public ResourceHandleProto.Builder addAllDtypesAndShapes (Iterable<? extends ResourceHandleProto.DtypeAndShape> values)
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.Builder addDtypesAndShapes (ResourceHandleProto.DtypeAndShape.Builder builderForValue)
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.Builder addDtypesAndShapes (ResourceHandleProto.DtypeAndShape value)
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.Builder addDtypesAndShapes (int index, ResourceHandleProto.DtypeAndShape value)
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.Builder addDtypesAndShapes (int index, ResourceHandleProto.DtypeAndShape.Builder builderForValue)
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.DtypeAndShape.Builder addDtypesAndShapesBuilder (int index)
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.DtypeAndShape.Builder addDtypesAndShapesBuilder ()
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.Builder addRepeatedField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public ResourceHandleProto.Builder clearContainer ()
Container in which this resource is placed.
string container = 2;
public ResourceHandleProto.Builder clearDevice ()
Unique name for the device containing the resource.
string device = 1;
public ResourceHandleProto.Builder clearDtypesAndShapes ()
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.Builder clearField (com.google.protobuf.Descriptors.FieldDescriptor field)
public ResourceHandleProto.Builder clearHashCode ()
Hash code for the type of the resource. Is only valid in the same device and in the same execution.
uint64 hash_code = 4;
public ResourceHandleProto.Builder clearMaybeTypeName ()
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;
public ResourceHandleProto.Builder clearOneof (com.google.protobuf.Descriptors.OneofDescriptor oneof)
public String getContainer ()
Container in which this resource is placed.
string container = 2;
public com.google.protobuf.ByteString getContainerBytes ()
Container in which this resource is placed.
string container = 2;
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType ()
public String getDevice ()
Unique name for the device containing the resource.
string device = 1;
public com.google.protobuf.ByteString getDeviceBytes ()
Unique name for the device containing the resource.
string device = 1;
public ResourceHandleProto.DtypeAndShape getDtypesAndShapes (int index)
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.DtypeAndShape.Builder getDtypesAndShapesBuilder (int index)
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public List<ResourceHandleProto.DtypeAndShape.Builder> getDtypesAndShapesBuilderList ()
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public int getDtypesAndShapesCount ()
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public List<ResourceHandleProto.DtypeAndShape> getDtypesAndShapesList ()
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.DtypeAndShapeOrBuilder getDtypesAndShapesOrBuilder (int index)
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public List<? extends ResourceHandleProto.DtypeAndShapeOrBuilder> getDtypesAndShapesOrBuilderList ()
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public long getHashCode ()
Hash code for the type of the resource. Is only valid in the same device and in the same execution.
uint64 hash_code = 4;
public String getMaybeTypeName ()
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;
public com.google.protobuf.ByteString getMaybeTypeNameBytes ()
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;
public String getName ()
Unique name of this resource.
string name = 3;
public com.google.protobuf.ByteString getNameBytes ()
Unique name of this resource.
string name = 3;
public final boolean isInitialized ()
public ResourceHandleProto.Builder mergeFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Throws
IOException |
---|
public final ResourceHandleProto.Builder mergeUnknownFields (com.google.protobuf.UnknownFieldSet unknownFields)
public ResourceHandleProto.Builder removeDtypesAndShapes (int index)
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.Builder setContainer (String value)
Container in which this resource is placed.
string container = 2;
public ResourceHandleProto.Builder setContainerBytes (com.google.protobuf.ByteString value)
Container in which this resource is placed.
string container = 2;
public ResourceHandleProto.Builder setDevice (String value)
Unique name for the device containing the resource.
string device = 1;
public ResourceHandleProto.Builder setDeviceBytes (com.google.protobuf.ByteString value)
Unique name for the device containing the resource.
string device = 1;
public ResourceHandleProto.Builder setDtypesAndShapes (int index, ResourceHandleProto.DtypeAndShape.Builder builderForValue)
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.Builder setDtypesAndShapes (int index, ResourceHandleProto.DtypeAndShape value)
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;
public ResourceHandleProto.Builder setField (com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
public ResourceHandleProto.Builder setHashCode (long value)
Hash code for the type of the resource. Is only valid in the same device and in the same execution.
uint64 hash_code = 4;
public ResourceHandleProto.Builder setMaybeTypeName (String value)
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;
public ResourceHandleProto.Builder setMaybeTypeNameBytes (com.google.protobuf.ByteString value)
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;
public ResourceHandleProto.Builder setName (String value)
Unique name of this resource.
string name = 3;
public ResourceHandleProto.Builder setNameBytes (com.google.protobuf.ByteString value)
Unique name of this resource.
string name = 3;