Class GraphOpCreation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<GraphOpCreation.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
org.tensorflow.proto.GraphOpCreation.Builder
- All Implemented Interfaces:
Message.Builder, MessageLite.Builder, MessageLiteOrBuilder, MessageOrBuilder, Cloneable, GraphOpCreationOrBuilder
- Enclosing class:
GraphOpCreation
public static final class GraphOpCreation.Builder
extends GeneratedMessageV3.Builder<GraphOpCreation.Builder>
implements GraphOpCreationOrBuilder
The creation of an op in a TensorFlow Graph (e.g., FuncGraph in TF2).Protobuf type
tensorflow.GraphOpCreation-
Method Summary
Modifier and TypeMethodDescriptionaddAllInputNames(Iterable<String> values) Names of the input tensors to the op.addAllOutputTensorIds(Iterable<? extends Integer> values) Unique IDs for the output tensors of this op.addInputNames(String value) Names of the input tensors to the op.addInputNamesBytes(ByteString value) Names of the input tensors to the op.addOutputTensorIds(int value) Unique IDs for the output tensors of this op.addRepeatedField(Descriptors.FieldDescriptor field, Object value) build()clear()The unique ID for code location (stack trace) of the op's creation.Name of the device that the op is assigned to (if available).Unique ID of the graph (generated by debugger).Name of the graph that the op is a part of (if available).Names of the input tensors to the op.Number of output tensors emitted by the op.Name of the op (e.g., "Dense/MatMul_1").Type of the op (e.g., "MatMul").Unique IDs for the output tensors of this op.clone()The unique ID for code location (stack trace) of the op's creation.The unique ID for code location (stack trace) of the op's creation.The unique ID for code location (stack trace) of the op's creation.static final Descriptors.DescriptorName of the device that the op is assigned to (if available).Name of the device that the op is assigned to (if available).Unique ID of the graph (generated by debugger).Unique ID of the graph (generated by debugger).Name of the graph that the op is a part of (if available).Name of the graph that the op is a part of (if available).getInputNames(int index) Names of the input tensors to the op.getInputNamesBytes(int index) Names of the input tensors to the op.intNames of the input tensors to the op.Names of the input tensors to the op.intNumber of output tensors emitted by the op.Name of the op (e.g., "Dense/MatMul_1").Name of the op (e.g., "Dense/MatMul_1").Type of the op (e.g., "MatMul").Type of the op (e.g., "MatMul").intgetOutputTensorIds(int index) Unique IDs for the output tensors of this op.intUnique IDs for the output tensors of this op.Unique IDs for the output tensors of this op.booleanThe unique ID for code location (stack trace) of the op's creation.protected GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCodeLocation(CodeLocation value) The unique ID for code location (stack trace) of the op's creation.mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom(GraphOpCreation other) final GraphOpCreation.BuildermergeUnknownFields(UnknownFieldSet unknownFields) setCodeLocation(CodeLocation value) The unique ID for code location (stack trace) of the op's creation.setCodeLocation(CodeLocation.Builder builderForValue) The unique ID for code location (stack trace) of the op's creation.setDeviceName(String value) Name of the device that the op is assigned to (if available).setDeviceNameBytes(ByteString value) Name of the device that the op is assigned to (if available).setField(Descriptors.FieldDescriptor field, Object value) setGraphId(String value) Unique ID of the graph (generated by debugger).setGraphIdBytes(ByteString value) Unique ID of the graph (generated by debugger).setGraphName(String value) Name of the graph that the op is a part of (if available).setGraphNameBytes(ByteString value) Name of the graph that the op is a part of (if available).setInputNames(int index, String value) Names of the input tensors to the op.setNumOutputs(int value) Number of output tensors emitted by the op.Name of the op (e.g., "Dense/MatMul_1").setOpNameBytes(ByteString value) Name of the op (e.g., "Dense/MatMul_1").Type of the op (e.g., "MatMul").setOpTypeBytes(ByteString value) Type of the op (e.g., "MatMul").setOutputTensorIds(int index, int value) Unique IDs for the output tensors of this op.setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) final GraphOpCreation.BuildersetUnknownFields(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<GraphOpCreation.Builder>
-
clear
- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.Builder<GraphOpCreation.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<GraphOpCreation.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<GraphOpCreation.Builder>
-
setField
- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.Builder<GraphOpCreation.Builder>
-
clearField
- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.Builder<GraphOpCreation.Builder>
-
clearOneof
- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<GraphOpCreation.Builder>
-
setRepeatedField
public GraphOpCreation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.Builder<GraphOpCreation.Builder>
-
addRepeatedField
- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.Builder<GraphOpCreation.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<GraphOpCreation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.Builder<GraphOpCreation.Builder>
-
mergeFrom
public GraphOpCreation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<GraphOpCreation.Builder>- Throws:
IOException
-
getOpType
Type of the op (e.g., "MatMul").
string op_type = 1;- Specified by:
getOpTypein interfaceGraphOpCreationOrBuilder- Returns:
- The opType.
-
getOpTypeBytes
Type of the op (e.g., "MatMul").
string op_type = 1;- Specified by:
getOpTypeBytesin interfaceGraphOpCreationOrBuilder- Returns:
- The bytes for opType.
-
setOpType
Type of the op (e.g., "MatMul").
string op_type = 1;- Parameters:
value- The opType to set.- Returns:
- This builder for chaining.
-
clearOpType
Type of the op (e.g., "MatMul").
string op_type = 1;- Returns:
- This builder for chaining.
-
setOpTypeBytes
Type of the op (e.g., "MatMul").
string op_type = 1;- Parameters:
value- The bytes for opType to set.- Returns:
- This builder for chaining.
-
getOpName
Name of the op (e.g., "Dense/MatMul_1").
string op_name = 2;- Specified by:
getOpNamein interfaceGraphOpCreationOrBuilder- Returns:
- The opName.
-
getOpNameBytes
Name of the op (e.g., "Dense/MatMul_1").
string op_name = 2;- Specified by:
getOpNameBytesin interfaceGraphOpCreationOrBuilder- Returns:
- The bytes for opName.
-
setOpName
Name of the op (e.g., "Dense/MatMul_1").
string op_name = 2;- Parameters:
value- The opName to set.- Returns:
- This builder for chaining.
-
clearOpName
Name of the op (e.g., "Dense/MatMul_1").
string op_name = 2;- Returns:
- This builder for chaining.
-
setOpNameBytes
Name of the op (e.g., "Dense/MatMul_1").
string op_name = 2;- Parameters:
value- The bytes for opName to set.- Returns:
- This builder for chaining.
-
getGraphName
Name of the graph that the op is a part of (if available).
string graph_name = 3;- Specified by:
getGraphNamein interfaceGraphOpCreationOrBuilder- Returns:
- The graphName.
-
getGraphNameBytes
Name of the graph that the op is a part of (if available).
string graph_name = 3;- Specified by:
getGraphNameBytesin interfaceGraphOpCreationOrBuilder- Returns:
- The bytes for graphName.
-
setGraphName
Name of the graph that the op is a part of (if available).
string graph_name = 3;- Parameters:
value- The graphName to set.- Returns:
- This builder for chaining.
-
clearGraphName
Name of the graph that the op is a part of (if available).
string graph_name = 3;- Returns:
- This builder for chaining.
-
setGraphNameBytes
Name of the graph that the op is a part of (if available).
string graph_name = 3;- Parameters:
value- The bytes for graphName to set.- Returns:
- This builder for chaining.
-
getGraphId
Unique ID of the graph (generated by debugger). This is the ID of the immediately-enclosing graph.
string graph_id = 4;- Specified by:
getGraphIdin interfaceGraphOpCreationOrBuilder- Returns:
- The graphId.
-
getGraphIdBytes
Unique ID of the graph (generated by debugger). This is the ID of the immediately-enclosing graph.
string graph_id = 4;- Specified by:
getGraphIdBytesin interfaceGraphOpCreationOrBuilder- Returns:
- The bytes for graphId.
-
setGraphId
Unique ID of the graph (generated by debugger). This is the ID of the immediately-enclosing graph.
string graph_id = 4;- Parameters:
value- The graphId to set.- Returns:
- This builder for chaining.
-
clearGraphId
Unique ID of the graph (generated by debugger). This is the ID of the immediately-enclosing graph.
string graph_id = 4;- Returns:
- This builder for chaining.
-
setGraphIdBytes
Unique ID of the graph (generated by debugger). This is the ID of the immediately-enclosing graph.
string graph_id = 4;- Parameters:
value- The bytes for graphId to set.- Returns:
- This builder for chaining.
-
getDeviceName
Name of the device that the op is assigned to (if available).
string device_name = 5;- Specified by:
getDeviceNamein interfaceGraphOpCreationOrBuilder- Returns:
- The deviceName.
-
getDeviceNameBytes
Name of the device that the op is assigned to (if available).
string device_name = 5;- Specified by:
getDeviceNameBytesin interfaceGraphOpCreationOrBuilder- Returns:
- The bytes for deviceName.
-
setDeviceName
Name of the device that the op is assigned to (if available).
string device_name = 5;- Parameters:
value- The deviceName to set.- Returns:
- This builder for chaining.
-
clearDeviceName
Name of the device that the op is assigned to (if available).
string device_name = 5;- Returns:
- This builder for chaining.
-
setDeviceNameBytes
Name of the device that the op is assigned to (if available).
string device_name = 5;- Parameters:
value- The bytes for deviceName to set.- Returns:
- This builder for chaining.
-
getInputNamesList
Names of the input tensors to the op.
repeated string input_names = 6;- Specified by:
getInputNamesListin interfaceGraphOpCreationOrBuilder- Returns:
- A list containing the inputNames.
-
getInputNamesCount
public int getInputNamesCount()Names of the input tensors to the op.
repeated string input_names = 6;- Specified by:
getInputNamesCountin interfaceGraphOpCreationOrBuilder- Returns:
- The count of inputNames.
-
getInputNames
Names of the input tensors to the op.
repeated string input_names = 6;- Specified by:
getInputNamesin interfaceGraphOpCreationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The inputNames at the given index.
-
getInputNamesBytes
Names of the input tensors to the op.
repeated string input_names = 6;- Specified by:
getInputNamesBytesin interfaceGraphOpCreationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the inputNames at the given index.
-
setInputNames
Names of the input tensors to the op.
repeated string input_names = 6;- Parameters:
index- The index to set the value at.value- The inputNames to set.- Returns:
- This builder for chaining.
-
addInputNames
Names of the input tensors to the op.
repeated string input_names = 6;- Parameters:
value- The inputNames to add.- Returns:
- This builder for chaining.
-
addAllInputNames
Names of the input tensors to the op.
repeated string input_names = 6;- Parameters:
values- The inputNames to add.- Returns:
- This builder for chaining.
-
clearInputNames
Names of the input tensors to the op.
repeated string input_names = 6;- Returns:
- This builder for chaining.
-
addInputNamesBytes
Names of the input tensors to the op.
repeated string input_names = 6;- Parameters:
value- The bytes of the inputNames to add.- Returns:
- This builder for chaining.
-
getNumOutputs
public int getNumOutputs()Number of output tensors emitted by the op.
int32 num_outputs = 7;- Specified by:
getNumOutputsin interfaceGraphOpCreationOrBuilder- Returns:
- The numOutputs.
-
setNumOutputs
Number of output tensors emitted by the op.
int32 num_outputs = 7;- Parameters:
value- The numOutputs to set.- Returns:
- This builder for chaining.
-
clearNumOutputs
Number of output tensors emitted by the op.
int32 num_outputs = 7;- Returns:
- This builder for chaining.
-
hasCodeLocation
public boolean hasCodeLocation()The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8;- Specified by:
hasCodeLocationin interfaceGraphOpCreationOrBuilder- Returns:
- Whether the codeLocation field is set.
-
getCodeLocation
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8;- Specified by:
getCodeLocationin interfaceGraphOpCreationOrBuilder- Returns:
- The codeLocation.
-
setCodeLocation
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8; -
setCodeLocation
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8; -
mergeCodeLocation
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8; -
clearCodeLocation
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8; -
getCodeLocationBuilder
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8; -
getCodeLocationOrBuilder
The unique ID for code location (stack trace) of the op's creation.
.tensorflow.CodeLocation code_location = 8;- Specified by:
getCodeLocationOrBuilderin interfaceGraphOpCreationOrBuilder
-
getOutputTensorIdsList
Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;- Specified by:
getOutputTensorIdsListin interfaceGraphOpCreationOrBuilder- Returns:
- A list containing the outputTensorIds.
-
getOutputTensorIdsCount
public int getOutputTensorIdsCount()Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;- Specified by:
getOutputTensorIdsCountin interfaceGraphOpCreationOrBuilder- Returns:
- The count of outputTensorIds.
-
getOutputTensorIds
public int getOutputTensorIds(int index) Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;- Specified by:
getOutputTensorIdsin interfaceGraphOpCreationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The outputTensorIds at the given index.
-
setOutputTensorIds
Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;- Parameters:
index- The index to set the value at.value- The outputTensorIds to set.- Returns:
- This builder for chaining.
-
addOutputTensorIds
Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;- Parameters:
value- The outputTensorIds to add.- Returns:
- This builder for chaining.
-
addAllOutputTensorIds
Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;- Parameters:
values- The outputTensorIds to add.- Returns:
- This builder for chaining.
-
clearOutputTensorIds
Unique IDs for the output tensors of this op.
repeated int32 output_tensor_ids = 9;- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<GraphOpCreation.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<GraphOpCreation.Builder>
-