public final class ResourceHandleProto extends com.google.protobuf.GeneratedMessageV3 implements ResourceHandleProtoOrBuilder
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| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceHandleProto.Builder
Protocol buffer representing a handle to a tensorflow resource.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONTAINER_FIELD_NUMBER |
static int |
DEVICE_FIELD_NUMBER |
static int |
HASH_CODE_FIELD_NUMBER |
static int |
MAYBE_TYPE_NAME_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContainer()
Container in which this resource is placed.
|
com.google.protobuf.ByteString |
getContainerBytes()
Container in which this resource is placed.
|
static ResourceHandleProto |
getDefaultInstance() |
ResourceHandleProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getDevice()
Unique name for the device containing the resource.
|
com.google.protobuf.ByteString |
getDeviceBytes()
Unique name for the device containing the resource.
|
long |
getHashCode()
Hash code for the type of the resource.
|
java.lang.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.
|
java.lang.String |
getName()
Unique name of this resource.
|
com.google.protobuf.ByteString |
getNameBytes()
Unique name of this resource.
|
com.google.protobuf.Parser<ResourceHandleProto> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ResourceHandleProto.Builder |
newBuilder() |
static ResourceHandleProto.Builder |
newBuilder(ResourceHandleProto prototype) |
ResourceHandleProto.Builder |
newBuilderForType() |
protected ResourceHandleProto.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ResourceHandleProto |
parseDelimitedFrom(java.io.InputStream input) |
static ResourceHandleProto |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceHandleProto |
parseFrom(byte[] data) |
static ResourceHandleProto |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceHandleProto |
parseFrom(java.nio.ByteBuffer data) |
static ResourceHandleProto |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceHandleProto |
parseFrom(com.google.protobuf.ByteString data) |
static ResourceHandleProto |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceHandleProto |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ResourceHandleProto |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ResourceHandleProto |
parseFrom(java.io.InputStream input) |
static ResourceHandleProto |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ResourceHandleProto> |
parser() |
ResourceHandleProto.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int DEVICE_FIELD_NUMBER
public static final int CONTAINER_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
public static final int HASH_CODE_FIELD_NUMBER
public static final int MAYBE_TYPE_NAME_FIELD_NUMBER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public java.lang.String getDevice()
Unique name for the device containing the resource.
string device = 1;getDevice in interface ResourceHandleProtoOrBuilderpublic com.google.protobuf.ByteString getDeviceBytes()
Unique name for the device containing the resource.
string device = 1;getDeviceBytes in interface ResourceHandleProtoOrBuilderpublic java.lang.String getContainer()
Container in which this resource is placed.
string container = 2;getContainer in interface ResourceHandleProtoOrBuilderpublic com.google.protobuf.ByteString getContainerBytes()
Container in which this resource is placed.
string container = 2;getContainerBytes in interface ResourceHandleProtoOrBuilderpublic java.lang.String getName()
Unique name of this resource.
string name = 3;getName in interface ResourceHandleProtoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Unique name of this resource.
string name = 3;getNameBytes in interface ResourceHandleProtoOrBuilderpublic 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;getHashCode in interface ResourceHandleProtoOrBuilderpublic java.lang.String getMaybeTypeName()
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;getMaybeTypeName in interface ResourceHandleProtoOrBuilderpublic 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;getMaybeTypeNameBytes in interface ResourceHandleProtoOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ResourceHandleProto parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceHandleProto parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceHandleProto parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceHandleProto parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceHandleProto parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceHandleProto parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ResourceHandleProto parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ResourceHandleProto parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ResourceHandleProto parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ResourceHandleProto parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static ResourceHandleProto parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static ResourceHandleProto parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic ResourceHandleProto.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ResourceHandleProto.Builder newBuilder()
public static ResourceHandleProto.Builder newBuilder(ResourceHandleProto prototype)
public ResourceHandleProto.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ResourceHandleProto.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ResourceHandleProto getDefaultInstance()
public static com.google.protobuf.Parser<ResourceHandleProto> parser()
public com.google.protobuf.Parser<ResourceHandleProto> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ResourceHandleProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder