Class ResourceHandleProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ResourceHandleProto.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ResourceHandleProto.Builder>
org.tensorflow.proto.ResourceHandleProto.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, ResourceHandleProtoOrBuilder
- Enclosing class:
ResourceHandleProto
public static final class ResourceHandleProto.Builder
extends 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-
Method Summary
Modifier and TypeMethodDescriptionaddAllDtypesAndShapes(Iterable<? extends ResourceHandleProto.DtypeAndShape> values) Data types and shapes for the underlying resource.addDtypesAndShapes(int index, ResourceHandleProto.DtypeAndShape value) Data types and shapes for the underlying resource.addDtypesAndShapes(int index, ResourceHandleProto.DtypeAndShape.Builder builderForValue) Data types and shapes for the underlying resource.Data types and shapes for the underlying resource.addDtypesAndShapes(ResourceHandleProto.DtypeAndShape.Builder builderForValue) Data types and shapes for the underlying resource.Data types and shapes for the underlying resource.addDtypesAndShapesBuilder(int index) Data types and shapes for the underlying resource.addRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()Container in which this resource is placed.Unique name for the device containing the resource.Data types and shapes for the underlying resource.Hash code for the type of the resource.For debug-only, the name of the type pointed to by this handle, if available.Unique name of this resource.clone()Container in which this resource is placed.Container in which this resource is placed.static final Descriptors.DescriptorUnique name for the device containing the resource.Unique name for the device containing the resource.getDtypesAndShapes(int index) Data types and shapes for the underlying resource.getDtypesAndShapesBuilder(int index) Data types and shapes for the underlying resource.Data types and shapes for the underlying resource.intData types and shapes for the underlying resource.Data types and shapes for the underlying resource.getDtypesAndShapesOrBuilder(int index) Data types and shapes for the underlying resource.List<? extends ResourceHandleProto.DtypeAndShapeOrBuilder> Data types and shapes for the underlying resource.longHash code for the type of the resource.For debug-only, the name of the type pointed to by this handle, if available.For debug-only, the name of the type pointed to by this handle, if available.getName()Unique name of this resource.Unique name of this resource.protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(ResourceHandleProto other) mergeUnknownFields(UnknownFieldSet unknownFields) removeDtypesAndShapes(int index) Data types and shapes for the underlying resource.setContainer(String value) Container in which this resource is placed.setContainerBytes(ByteString value) Container in which this resource is placed.Unique name for the device containing the resource.setDeviceBytes(ByteString value) Unique name for the device containing the resource.setDtypesAndShapes(int index, ResourceHandleProto.DtypeAndShape value) Data types and shapes for the underlying resource.setDtypesAndShapes(int index, ResourceHandleProto.DtypeAndShape.Builder builderForValue) Data types and shapes for the underlying resource.setField(Descriptors.FieldDescriptor field, Object value) setHashCode(long value) Hash code for the type of the resource.setMaybeTypeName(String value) For debug-only, the name of the type pointed to by this handle, if available.setMaybeTypeNameBytes(ByteString value) For debug-only, the name of the type pointed to by this handle, if available.Unique name of this resource.setNameBytes(ByteString value) Unique name of this resource.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(UnknownFieldSet unknownFields) Methods inherited from class GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface MessageLite.Builder
mergeFromMethods inherited from interface MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<ResourceHandleProto.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<ResourceHandleProto.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<ResourceHandleProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<ResourceHandleProto.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<ResourceHandleProto.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<ResourceHandleProto.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<ResourceHandleProto.Builder>
-
setRepeatedField
public ResourceHandleProto.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<ResourceHandleProto.Builder>
-
addRepeatedField
public ResourceHandleProto.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<ResourceHandleProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<ResourceHandleProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<ResourceHandleProto.Builder>
-
mergeFrom
public ResourceHandleProto.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<ResourceHandleProto.Builder>- Throws:
IOException
-
getDevice
Unique name for the device containing the resource.
string device = 1;- Specified by:
getDevicein interfaceResourceHandleProtoOrBuilder- Returns:
- The device.
-
getDeviceBytes
Unique name for the device containing the resource.
string device = 1;- Specified by:
getDeviceBytesin interfaceResourceHandleProtoOrBuilder- Returns:
- The bytes for device.
-
setDevice
Unique name for the device containing the resource.
string device = 1;- Parameters:
value- The device to set.- Returns:
- This builder for chaining.
-
clearDevice
Unique name for the device containing the resource.
string device = 1;- Returns:
- This builder for chaining.
-
setDeviceBytes
Unique name for the device containing the resource.
string device = 1;- Parameters:
value- The bytes for device to set.- Returns:
- This builder for chaining.
-
getContainer
Container in which this resource is placed.
string container = 2;- Specified by:
getContainerin interfaceResourceHandleProtoOrBuilder- Returns:
- The container.
-
getContainerBytes
Container in which this resource is placed.
string container = 2;- Specified by:
getContainerBytesin interfaceResourceHandleProtoOrBuilder- Returns:
- The bytes for container.
-
setContainer
Container in which this resource is placed.
string container = 2;- Parameters:
value- The container to set.- Returns:
- This builder for chaining.
-
clearContainer
Container in which this resource is placed.
string container = 2;- Returns:
- This builder for chaining.
-
setContainerBytes
Container in which this resource is placed.
string container = 2;- Parameters:
value- The bytes for container to set.- Returns:
- This builder for chaining.
-
getName
Unique name of this resource.
string name = 3;- Specified by:
getNamein interfaceResourceHandleProtoOrBuilder- Returns:
- The name.
-
getNameBytes
Unique name of this resource.
string name = 3;- Specified by:
getNameBytesin interfaceResourceHandleProtoOrBuilder- Returns:
- The bytes for name.
-
setName
Unique name of this resource.
string name = 3;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Unique name of this resource.
string name = 3;- Returns:
- This builder for chaining.
-
setNameBytes
Unique name of this resource.
string name = 3;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getHashCode
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;- Specified by:
getHashCodein interfaceResourceHandleProtoOrBuilder- Returns:
- The hashCode.
-
setHashCode
Hash code for the type of the resource. Is only valid in the same device and in the same execution.
uint64 hash_code = 4;- Parameters:
value- The hashCode to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getMaybeTypeName
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;- Specified by:
getMaybeTypeNamein interfaceResourceHandleProtoOrBuilder- Returns:
- The maybeTypeName.
-
getMaybeTypeNameBytes
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;- Specified by:
getMaybeTypeNameBytesin interfaceResourceHandleProtoOrBuilder- Returns:
- The bytes for maybeTypeName.
-
setMaybeTypeName
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;- Parameters:
value- The maybeTypeName to set.- Returns:
- This builder for chaining.
-
clearMaybeTypeName
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;- Returns:
- This builder for chaining.
-
setMaybeTypeNameBytes
For debug-only, the name of the type pointed to by this handle, if available.
string maybe_type_name = 5;- Parameters:
value- The bytes for maybeTypeName to set.- Returns:
- This builder for chaining.
-
getDtypesAndShapesList
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;- Specified by:
getDtypesAndShapesListin interfaceResourceHandleProtoOrBuilder
-
getDtypesAndShapesCount
public int getDtypesAndShapesCount()Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;- Specified by:
getDtypesAndShapesCountin interfaceResourceHandleProtoOrBuilder
-
getDtypesAndShapes
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;- Specified by:
getDtypesAndShapesin interfaceResourceHandleProtoOrBuilder
-
setDtypesAndShapes
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; -
setDtypesAndShapes
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; -
addDtypesAndShapes
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
addDtypesAndShapes
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; -
addDtypesAndShapes
public ResourceHandleProto.Builder addDtypesAndShapes(ResourceHandleProto.DtypeAndShape.Builder builderForValue) Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
addDtypesAndShapes
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; -
addAllDtypesAndShapes
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; -
clearDtypesAndShapes
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
removeDtypesAndShapes
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
getDtypesAndShapesBuilder
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
getDtypesAndShapesOrBuilder
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;- Specified by:
getDtypesAndShapesOrBuilderin interfaceResourceHandleProtoOrBuilder
-
getDtypesAndShapesOrBuilderList
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6;- Specified by:
getDtypesAndShapesOrBuilderListin interfaceResourceHandleProtoOrBuilder
-
addDtypesAndShapesBuilder
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
addDtypesAndShapesBuilder
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
getDtypesAndShapesBuilderList
Data types and shapes for the underlying resource.
repeated .tensorflow.ResourceHandleProto.DtypeAndShape dtypes_and_shapes = 6; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<ResourceHandleProto.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<ResourceHandleProto.Builder>
-