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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic 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.Builderclear in interface org.nd4j.shade.protobuf.MessageLite.Builderclear 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.BuildergetDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuildergetDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>public ResourceHandleProto getDefaultInstanceForType()
getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilderpublic ResourceHandleProto build()
build in interface org.nd4j.shade.protobuf.Message.Builderbuild in interface org.nd4j.shade.protobuf.MessageLite.Builderpublic ResourceHandleProto buildPartial()
buildPartial in interface org.nd4j.shade.protobuf.Message.BuilderbuildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builderpublic ResourceHandleProto.Builder clone()
clone in interface org.nd4j.shade.protobuf.Message.Builderclone in interface org.nd4j.shade.protobuf.MessageLite.Builderclone 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.BuildersetField 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.BuilderclearField 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.BuilderclearOneof 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.BuildersetRepeatedField 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.BuilderaddRepeatedField 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.BuildermergeFrom 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.MessageLiteOrBuilderisInitialized 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.BuildermergeFrom in interface org.nd4j.shade.protobuf.MessageLite.BuildermergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<ResourceHandleProto.Builder>IOExceptionpublic String getDevice()
Unique name for the device containing the resource.
string device = 1;getDevice in interface ResourceHandleProtoOrBuilderpublic org.nd4j.shade.protobuf.ByteString getDeviceBytes()
Unique name for the device containing the resource.
string device = 1;getDeviceBytes in interface ResourceHandleProtoOrBuilderpublic 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 ResourceHandleProtoOrBuilderpublic org.nd4j.shade.protobuf.ByteString getContainerBytes()
Container in which this resource is placed.
string container = 2;getContainerBytes in interface ResourceHandleProtoOrBuilderpublic 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 ResourceHandleProtoOrBuilderpublic org.nd4j.shade.protobuf.ByteString getNameBytes()
Unique name of this resource.
string name = 3;getNameBytes in interface ResourceHandleProtoOrBuilderpublic 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 ResourceHandleProtoOrBuilderpublic 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 ResourceHandleProtoOrBuilderpublic 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 ResourceHandleProtoOrBuilderpublic 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.BuildersetUnknownFields 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.BuildermergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>Copyright © 2021. All rights reserved.