Class RemoteTensorHandle.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RemoteTensorHandle.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<RemoteTensorHandle.Builder>
org.tensorflow.proto.eager.RemoteTensorHandle.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, RemoteTensorHandleOrBuilder
- Enclosing class:
RemoteTensorHandle
public static final class RemoteTensorHandle.Builder
extends GeneratedMessageV3.Builder<RemoteTensorHandle.Builder>
implements RemoteTensorHandleOrBuilder
Protobuf type
tensorflow.eager.RemoteTensorHandle-
Method Summary
Modifier and TypeMethodDescriptionaddAllResourceDtypesAndShapes(Iterable<? extends ResourceDtypeAndShape> values) Optional data types and shapes of a remote resource variable.addRepeatedField(Descriptors.FieldDescriptor field, Object value) addResourceDtypesAndShapes(int index, ResourceDtypeAndShape value) Optional data types and shapes of a remote resource variable.addResourceDtypesAndShapes(int index, ResourceDtypeAndShape.Builder builderForValue) Optional data types and shapes of a remote resource variable.Optional data types and shapes of a remote resource variable.addResourceDtypesAndShapes(ResourceDtypeAndShape.Builder builderForValue) Optional data types and shapes of a remote resource variable.Optional data types and shapes of a remote resource variable.addResourceDtypesAndShapesBuilder(int index) Optional data types and shapes of a remote resource variable.build()clear()Device where the tensor is located.Tensor type.Device of the operation producing this tensor.The ID of the operation that produced this tensor.The index into the outputs of the operation that produced this tensor.Optional data types and shapes of a remote resource variable.clone()static final Descriptors.DescriptorDevice where the tensor is located.Device where the tensor is located.getDtype()Tensor type.intTensor type.Device of the operation producing this tensor.Device of the operation producing this tensor.longgetOpId()The ID of the operation that produced this tensor.intThe index into the outputs of the operation that produced this tensor.getResourceDtypesAndShapes(int index) Optional data types and shapes of a remote resource variable.getResourceDtypesAndShapesBuilder(int index) Optional data types and shapes of a remote resource variable.Optional data types and shapes of a remote resource variable.intOptional data types and shapes of a remote resource variable.Optional data types and shapes of a remote resource variable.getResourceDtypesAndShapesOrBuilder(int index) Optional data types and shapes of a remote resource variable.List<? extends ResourceDtypeAndShapeOrBuilder> Optional data types and shapes of a remote resource variable.protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(RemoteTensorHandle other) mergeUnknownFields(UnknownFieldSet unknownFields) removeResourceDtypesAndShapes(int index) Optional data types and shapes of a remote resource variable.Device where the tensor is located.setDeviceBytes(ByteString value) Device where the tensor is located.Tensor type.setDtypeValue(int value) Tensor type.setField(Descriptors.FieldDescriptor field, Object value) setOpDevice(String value) Device of the operation producing this tensor.setOpDeviceBytes(ByteString value) Device of the operation producing this tensor.setOpId(long value) The ID of the operation that produced this tensor.setOutputNum(int value) The index into the outputs of the operation that produced this tensor.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) setResourceDtypesAndShapes(int index, ResourceDtypeAndShape value) Optional data types and shapes of a remote resource variable.setResourceDtypesAndShapes(int index, ResourceDtypeAndShape.Builder builderForValue) Optional data types and shapes of a remote resource variable.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<RemoteTensorHandle.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<RemoteTensorHandle.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<RemoteTensorHandle.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<RemoteTensorHandle.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<RemoteTensorHandle.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<RemoteTensorHandle.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<RemoteTensorHandle.Builder>
-
setRepeatedField
public RemoteTensorHandle.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<RemoteTensorHandle.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<RemoteTensorHandle.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<RemoteTensorHandle.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<RemoteTensorHandle.Builder>
-
mergeFrom
public RemoteTensorHandle.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<RemoteTensorHandle.Builder>- Throws:
IOException
-
getOpId
public long getOpId()The ID of the operation that produced this tensor.
int64 op_id = 1;- Specified by:
getOpIdin interfaceRemoteTensorHandleOrBuilder- Returns:
- The opId.
-
setOpId
The ID of the operation that produced this tensor.
int64 op_id = 1;- Parameters:
value- The opId to set.- Returns:
- This builder for chaining.
-
clearOpId
The ID of the operation that produced this tensor.
int64 op_id = 1;- Returns:
- This builder for chaining.
-
getOutputNum
public int getOutputNum()The index into the outputs of the operation that produced this tensor.
int32 output_num = 2;- Specified by:
getOutputNumin interfaceRemoteTensorHandleOrBuilder- Returns:
- The outputNum.
-
setOutputNum
The index into the outputs of the operation that produced this tensor.
int32 output_num = 2;- Parameters:
value- The outputNum to set.- Returns:
- This builder for chaining.
-
clearOutputNum
The index into the outputs of the operation that produced this tensor.
int32 output_num = 2;- Returns:
- This builder for chaining.
-
getDevice
Device where the tensor is located. Cannot be empty. For multi-device functions, it's the default device passed to placer.
string device = 3;- Specified by:
getDevicein interfaceRemoteTensorHandleOrBuilder- Returns:
- The device.
-
getDeviceBytes
Device where the tensor is located. Cannot be empty. For multi-device functions, it's the default device passed to placer.
string device = 3;- Specified by:
getDeviceBytesin interfaceRemoteTensorHandleOrBuilder- Returns:
- The bytes for device.
-
setDevice
Device where the tensor is located. Cannot be empty. For multi-device functions, it's the default device passed to placer.
string device = 3;- Parameters:
value- The device to set.- Returns:
- This builder for chaining.
-
clearDevice
Device where the tensor is located. Cannot be empty. For multi-device functions, it's the default device passed to placer.
string device = 3;- Returns:
- This builder for chaining.
-
setDeviceBytes
Device where the tensor is located. Cannot be empty. For multi-device functions, it's the default device passed to placer.
string device = 3;- Parameters:
value- The bytes for device to set.- Returns:
- This builder for chaining.
-
getOpDevice
Device of the operation producing this tensor. Can be empty if the operation producing this tensor is a multi-device function.
string op_device = 4;- Specified by:
getOpDevicein interfaceRemoteTensorHandleOrBuilder- Returns:
- The opDevice.
-
getOpDeviceBytes
Device of the operation producing this tensor. Can be empty if the operation producing this tensor is a multi-device function.
string op_device = 4;- Specified by:
getOpDeviceBytesin interfaceRemoteTensorHandleOrBuilder- Returns:
- The bytes for opDevice.
-
setOpDevice
Device of the operation producing this tensor. Can be empty if the operation producing this tensor is a multi-device function.
string op_device = 4;- Parameters:
value- The opDevice to set.- Returns:
- This builder for chaining.
-
clearOpDevice
Device of the operation producing this tensor. Can be empty if the operation producing this tensor is a multi-device function.
string op_device = 4;- Returns:
- This builder for chaining.
-
setOpDeviceBytes
Device of the operation producing this tensor. Can be empty if the operation producing this tensor is a multi-device function.
string op_device = 4;- Parameters:
value- The bytes for opDevice to set.- Returns:
- This builder for chaining.
-
getDtypeValue
public int getDtypeValue()Tensor type.
.tensorflow.DataType dtype = 5;- Specified by:
getDtypeValuein interfaceRemoteTensorHandleOrBuilder- Returns:
- The enum numeric value on the wire for dtype.
-
setDtypeValue
Tensor type.
.tensorflow.DataType dtype = 5;- Parameters:
value- The enum numeric value on the wire for dtype to set.- Returns:
- This builder for chaining.
-
getDtype
Tensor type.
.tensorflow.DataType dtype = 5;- Specified by:
getDtypein interfaceRemoteTensorHandleOrBuilder- Returns:
- The dtype.
-
setDtype
Tensor type.
.tensorflow.DataType dtype = 5;- Parameters:
value- The dtype to set.- Returns:
- This builder for chaining.
-
clearDtype
Tensor type.
.tensorflow.DataType dtype = 5;- Returns:
- This builder for chaining.
-
getResourceDtypesAndShapesList
Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;- Specified by:
getResourceDtypesAndShapesListin interfaceRemoteTensorHandleOrBuilder
-
getResourceDtypesAndShapesCount
public int getResourceDtypesAndShapesCount()Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;- Specified by:
getResourceDtypesAndShapesCountin interfaceRemoteTensorHandleOrBuilder
-
getResourceDtypesAndShapes
Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;- Specified by:
getResourceDtypesAndShapesin interfaceRemoteTensorHandleOrBuilder
-
setResourceDtypesAndShapes
public RemoteTensorHandle.Builder setResourceDtypesAndShapes(int index, ResourceDtypeAndShape value) Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
setResourceDtypesAndShapes
public RemoteTensorHandle.Builder setResourceDtypesAndShapes(int index, ResourceDtypeAndShape.Builder builderForValue) Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
addResourceDtypesAndShapes
Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
addResourceDtypesAndShapes
public RemoteTensorHandle.Builder addResourceDtypesAndShapes(int index, ResourceDtypeAndShape value) Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
addResourceDtypesAndShapes
public RemoteTensorHandle.Builder addResourceDtypesAndShapes(ResourceDtypeAndShape.Builder builderForValue) Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
addResourceDtypesAndShapes
public RemoteTensorHandle.Builder addResourceDtypesAndShapes(int index, ResourceDtypeAndShape.Builder builderForValue) Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
addAllResourceDtypesAndShapes
public RemoteTensorHandle.Builder addAllResourceDtypesAndShapes(Iterable<? extends ResourceDtypeAndShape> values) Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
clearResourceDtypesAndShapes
Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
removeResourceDtypesAndShapes
Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
getResourceDtypesAndShapesBuilder
Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
getResourceDtypesAndShapesOrBuilder
Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;- Specified by:
getResourceDtypesAndShapesOrBuilderin interfaceRemoteTensorHandleOrBuilder
-
getResourceDtypesAndShapesOrBuilderList
Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6;- Specified by:
getResourceDtypesAndShapesOrBuilderListin interfaceRemoteTensorHandleOrBuilder
-
addResourceDtypesAndShapesBuilder
Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
addResourceDtypesAndShapesBuilder
Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
getResourceDtypesAndShapesBuilderList
Optional data types and shapes of a remote resource variable.
repeated .tensorflow.eager.ResourceDtypeAndShape resource_dtypes_and_shapes = 6; -
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<RemoteTensorHandle.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<RemoteTensorHandle.Builder>
-