ResourceHandleProto

public final class ResourceHandleProto

 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

Nested Classes

class ResourceHandleProto.Builder
 Protocol buffer representing a handle to a tensorflow resource. 
class ResourceHandleProto.DtypeAndShape
 Protocol buffer representing a pair of (data type, tensor shape). 
interface ResourceHandleProto.DtypeAndShapeOrBuilder  

Constants

int CONTAINER_FIELD_NUMBER
int DEVICE_FIELD_NUMBER
int DTYPES_AND_SHAPES_FIELD_NUMBER
int HASH_CODE_FIELD_NUMBER
int MAYBE_TYPE_NAME_FIELD_NUMBER
int NAME_FIELD_NUMBER

Public Methods

boolean
equals(Object obj)
String
getContainer()
 Container in which this resource is placed.
com.google.protobuf.ByteString
getContainerBytes()
 Container in which this resource is placed.
static ResourceHandleProto
ResourceHandleProto
final static 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.
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.
int
final com.google.protobuf.UnknownFieldSet
int
final boolean
static ResourceHandleProto.Builder
static ResourceHandleProto.Builder
ResourceHandleProto.Builder
static ResourceHandleProto
parseDelimitedFrom(InputStream input)
static ResourceHandleProto
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ResourceHandleProto
parseFrom(ByteBuffer data)
static ResourceHandleProto
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ResourceHandleProto
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ResourceHandleProto
parseFrom(com.google.protobuf.CodedInputStream input)
static ResourceHandleProto
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ResourceHandleProto
parseFrom(com.google.protobuf.ByteString data)
static ResourceHandleProto
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ResourceHandleProto
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static
parser()
ResourceHandleProto.Builder
void
writeTo(com.google.protobuf.CodedOutputStream output)

Inherited Methods

Constants

public static final int CONTAINER_FIELD_NUMBER

Constant Value: 2

public static final int DEVICE_FIELD_NUMBER

Constant Value: 1

public static final int DTYPES_AND_SHAPES_FIELD_NUMBER

Constant Value: 6

public static final int HASH_CODE_FIELD_NUMBER

Constant Value: 4

public static final int MAYBE_TYPE_NAME_FIELD_NUMBER

Constant Value: 5

public static final int NAME_FIELD_NUMBER

Constant Value: 3

Public Methods

public boolean equals (Object obj)

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 ResourceHandleProto getDefaultInstance ()

public ResourceHandleProto getDefaultInstanceForType ()

public static final com.google.protobuf.Descriptors.Descriptor getDescriptor ()

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 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 getParserForType ()

public int getSerializedSize ()

public final com.google.protobuf.UnknownFieldSet getUnknownFields ()

public int hashCode ()

public final boolean isInitialized ()

public static ResourceHandleProto.Builder newBuilder (ResourceHandleProto prototype)

public static ResourceHandleProto.Builder newBuilder ()

public ResourceHandleProto.Builder newBuilderForType ()

public static ResourceHandleProto parseDelimitedFrom (InputStream input)

Throws
IOException

public static ResourceHandleProto parseDelimitedFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static ResourceHandleProto parseFrom (ByteBuffer data)

Throws
InvalidProtocolBufferException

public static ResourceHandleProto parseFrom (com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static ResourceHandleProto parseFrom (ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static ResourceHandleProto parseFrom (com.google.protobuf.CodedInputStream input)

Throws
IOException

public static ResourceHandleProto parseFrom (byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static ResourceHandleProto parseFrom (com.google.protobuf.ByteString data)

Throws
InvalidProtocolBufferException

public static ResourceHandleProto parseFrom (InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
IOException

public static ResourceHandleProto parseFrom (com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)

Throws
InvalidProtocolBufferException

public static parser ()

public ResourceHandleProto.Builder toBuilder ()

public void writeTo (com.google.protobuf.CodedOutputStream output)

Throws
IOException