public static final class ResourceHandleProto.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder> 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 | Method and Description |
---|---|
ResourceHandleProto.Builder |
addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ResourceHandleProto |
build() |
ResourceHandleProto |
buildPartial() |
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 |
clearField(org.nd4j.shade.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(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof) |
ResourceHandleProto.Builder |
clone() |
String |
getContainer()
Container in which this resource is placed.
|
org.nd4j.shade.protobuf.ByteString |
getContainerBytes()
Container in which this resource is placed.
|
ResourceHandleProto |
getDefaultInstanceForType() |
static org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptor() |
org.nd4j.shade.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDevice()
Unique name for the device containing the resource.
|
org.nd4j.shade.protobuf.ByteString |
getDeviceBytes()
Unique name for the device containing the 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.
|
org.nd4j.shade.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.
|
org.nd4j.shade.protobuf.ByteString |
getNameBytes()
Unique name of this resource.
|
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ResourceHandleProto.Builder |
mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input,
org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) |
ResourceHandleProto.Builder |
mergeFrom(org.nd4j.shade.protobuf.Message other) |
ResourceHandleProto.Builder |
mergeFrom(ResourceHandleProto other) |
ResourceHandleProto.Builder |
mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields) |
ResourceHandleProto.Builder |
setContainer(String value)
Container in which this resource is placed.
|
ResourceHandleProto.Builder |
setContainerBytes(org.nd4j.shade.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(org.nd4j.shade.protobuf.ByteString value)
Unique name for the device containing the resource.
|
ResourceHandleProto.Builder |
setField(org.nd4j.shade.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(org.nd4j.shade.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(org.nd4j.shade.protobuf.ByteString value)
Unique name of this resource.
|
ResourceHandleProto.Builder |
setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ResourceHandleProto.Builder |
setUnknownFields(org.nd4j.shade.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 org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
public ResourceHandleProto.Builder clear()
clear
in interface org.nd4j.shade.protobuf.Message.Builder
clear
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clear
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface org.nd4j.shade.protobuf.Message.Builder
getDescriptorForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
getDescriptorForType
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
public ResourceHandleProto getDefaultInstanceForType()
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface org.nd4j.shade.protobuf.MessageOrBuilder
public ResourceHandleProto build()
build
in interface org.nd4j.shade.protobuf.Message.Builder
build
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public ResourceHandleProto buildPartial()
buildPartial
in interface org.nd4j.shade.protobuf.Message.Builder
buildPartial
in interface org.nd4j.shade.protobuf.MessageLite.Builder
public ResourceHandleProto.Builder clone()
clone
in interface org.nd4j.shade.protobuf.Message.Builder
clone
in interface org.nd4j.shade.protobuf.MessageLite.Builder
clone
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
public ResourceHandleProto.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface org.nd4j.shade.protobuf.Message.Builder
setField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
public ResourceHandleProto.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface org.nd4j.shade.protobuf.Message.Builder
clearField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
public ResourceHandleProto.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface org.nd4j.shade.protobuf.Message.Builder
clearOneof
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
public ResourceHandleProto.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface org.nd4j.shade.protobuf.Message.Builder
setRepeatedField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
public ResourceHandleProto.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface org.nd4j.shade.protobuf.Message.Builder
addRepeatedField
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
public ResourceHandleProto.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
mergeFrom
in interface org.nd4j.shade.protobuf.Message.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<ResourceHandleProto.Builder>
public ResourceHandleProto.Builder mergeFrom(ResourceHandleProto other)
public final boolean isInitialized()
isInitialized
in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
isInitialized
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
public ResourceHandleProto.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface org.nd4j.shade.protobuf.Message.Builder
mergeFrom
in interface org.nd4j.shade.protobuf.MessageLite.Builder
mergeFrom
in class org.nd4j.shade.protobuf.AbstractMessage.Builder<ResourceHandleProto.Builder>
IOException
public String getDevice()
Unique name for the device containing the resource.
string device = 1;
getDevice
in interface ResourceHandleProtoOrBuilder
public org.nd4j.shade.protobuf.ByteString getDeviceBytes()
Unique name for the device containing the resource.
string device = 1;
getDeviceBytes
in interface ResourceHandleProtoOrBuilder
public ResourceHandleProto.Builder setDevice(String value)
Unique name for the device containing the resource.
string device = 1;
public ResourceHandleProto.Builder clearDevice()
Unique name for the device containing the resource.
string device = 1;
public ResourceHandleProto.Builder setDeviceBytes(org.nd4j.shade.protobuf.ByteString value)
Unique name for the device containing the resource.
string device = 1;
public String getContainer()
Container in which this resource is placed.
string container = 2;
getContainer
in interface ResourceHandleProtoOrBuilder
public org.nd4j.shade.protobuf.ByteString getContainerBytes()
Container in which this resource is placed.
string container = 2;
getContainerBytes
in interface ResourceHandleProtoOrBuilder
public ResourceHandleProto.Builder setContainer(String value)
Container in which this resource is placed.
string container = 2;
public ResourceHandleProto.Builder clearContainer()
Container in which this resource is placed.
string container = 2;
public ResourceHandleProto.Builder setContainerBytes(org.nd4j.shade.protobuf.ByteString value)
Container in which this resource is placed.
string container = 2;
public String getName()
Unique name of this resource.
string name = 3;
getName
in interface ResourceHandleProtoOrBuilder
public org.nd4j.shade.protobuf.ByteString getNameBytes()
Unique name of this resource.
string name = 3;
getNameBytes
in interface ResourceHandleProtoOrBuilder
public ResourceHandleProto.Builder setName(String value)
Unique name of this resource.
string name = 3;
public ResourceHandleProto.Builder clearName()
Unique name of this resource.
string name = 3;
public ResourceHandleProto.Builder setNameBytes(org.nd4j.shade.protobuf.ByteString value)
Unique name of this resource.
string name = 3;
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;
getHashCode
in interface ResourceHandleProtoOrBuilder
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 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 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 ResourceHandleProtoOrBuilder
public org.nd4j.shade.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 ResourceHandleProtoOrBuilder
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 clearMaybeTypeName()
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;
public ResourceHandleProto.Builder setMaybeTypeNameBytes(org.nd4j.shade.protobuf.ByteString value)
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;
public final ResourceHandleProto.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface org.nd4j.shade.protobuf.Message.Builder
setUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
public final ResourceHandleProto.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface org.nd4j.shade.protobuf.Message.Builder
mergeUnknownFields
in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
Copyright © 2020. All rights reserved.