Class GraphOpCreation.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, GraphOpCreationOrBuilder
    Enclosing class:
    GraphOpCreation

    public static final class GraphOpCreation.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
    implements GraphOpCreationOrBuilder
     The creation of an op in a TensorFlow Graph (e.g., FuncGraph in TF2).
     
    Protobuf type org.platanios.tensorflow.proto.GraphOpCreation
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
      • clear

        public GraphOpCreation.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
      • getDefaultInstanceForType

        public GraphOpCreation getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public GraphOpCreation build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GraphOpCreation buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public GraphOpCreation.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
      • setField

        public GraphOpCreation.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
      • clearField

        public GraphOpCreation.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
      • clearOneof

        public GraphOpCreation.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
      • setRepeatedField

        public GraphOpCreation.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
      • addRepeatedField

        public GraphOpCreation.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
      • mergeFrom

        public GraphOpCreation.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GraphOpCreation.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
      • mergeFrom

        public GraphOpCreation.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GraphOpCreation.Builder>
        Throws:
        java.io.IOException
      • getOpType

        public java.lang.String getOpType()
         Type of the op (e.g., "MatMul").
         
        string op_type = 1;
        Specified by:
        getOpType in interface GraphOpCreationOrBuilder
        Returns:
        The opType.
      • getOpTypeBytes

        public com.google.protobuf.ByteString getOpTypeBytes()
         Type of the op (e.g., "MatMul").
         
        string op_type = 1;
        Specified by:
        getOpTypeBytes in interface GraphOpCreationOrBuilder
        Returns:
        The bytes for opType.
      • setOpType

        public GraphOpCreation.Builder setOpType​(java.lang.String value)
         Type of the op (e.g., "MatMul").
         
        string op_type = 1;
        Parameters:
        value - The opType to set.
        Returns:
        This builder for chaining.
      • clearOpType

        public GraphOpCreation.Builder clearOpType()
         Type of the op (e.g., "MatMul").
         
        string op_type = 1;
        Returns:
        This builder for chaining.
      • setOpTypeBytes

        public GraphOpCreation.Builder setOpTypeBytes​(com.google.protobuf.ByteString value)
         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

        public java.lang.String getOpName()
         Name of the op (e.g., "Dense/MatMul_1").
         
        string op_name = 2;
        Specified by:
        getOpName in interface GraphOpCreationOrBuilder
        Returns:
        The opName.
      • getOpNameBytes

        public com.google.protobuf.ByteString getOpNameBytes()
         Name of the op (e.g., "Dense/MatMul_1").
         
        string op_name = 2;
        Specified by:
        getOpNameBytes in interface GraphOpCreationOrBuilder
        Returns:
        The bytes for opName.
      • setOpName

        public GraphOpCreation.Builder setOpName​(java.lang.String value)
         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

        public GraphOpCreation.Builder clearOpName()
         Name of the op (e.g., "Dense/MatMul_1").
         
        string op_name = 2;
        Returns:
        This builder for chaining.
      • setOpNameBytes

        public GraphOpCreation.Builder setOpNameBytes​(com.google.protobuf.ByteString value)
         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

        public java.lang.String getGraphName()
         Name of the graph that the op is a part of (if available).
         
        string graph_name = 3;
        Specified by:
        getGraphName in interface GraphOpCreationOrBuilder
        Returns:
        The graphName.
      • getGraphNameBytes

        public com.google.protobuf.ByteString getGraphNameBytes()
         Name of the graph that the op is a part of (if available).
         
        string graph_name = 3;
        Specified by:
        getGraphNameBytes in interface GraphOpCreationOrBuilder
        Returns:
        The bytes for graphName.
      • setGraphName

        public GraphOpCreation.Builder setGraphName​(java.lang.String value)
         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

        public GraphOpCreation.Builder clearGraphName()
         Name of the graph that the op is a part of (if available).
         
        string graph_name = 3;
        Returns:
        This builder for chaining.
      • setGraphNameBytes

        public GraphOpCreation.Builder setGraphNameBytes​(com.google.protobuf.ByteString value)
         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

        public java.lang.String getGraphId()
         Unique ID of the graph (generated by debugger).
         This is the ID of the immediately-enclosing graph.
         
        string graph_id = 4;
        Specified by:
        getGraphId in interface GraphOpCreationOrBuilder
        Returns:
        The graphId.
      • getGraphIdBytes

        public com.google.protobuf.ByteString getGraphIdBytes()
         Unique ID of the graph (generated by debugger).
         This is the ID of the immediately-enclosing graph.
         
        string graph_id = 4;
        Specified by:
        getGraphIdBytes in interface GraphOpCreationOrBuilder
        Returns:
        The bytes for graphId.
      • setGraphId

        public GraphOpCreation.Builder setGraphId​(java.lang.String value)
         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

        public GraphOpCreation.Builder 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

        public GraphOpCreation.Builder setGraphIdBytes​(com.google.protobuf.ByteString value)
         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

        public java.lang.String getDeviceName()
         Name of the device that the op is assigned to (if available).
         
        string device_name = 5;
        Specified by:
        getDeviceName in interface GraphOpCreationOrBuilder
        Returns:
        The deviceName.
      • getDeviceNameBytes

        public com.google.protobuf.ByteString getDeviceNameBytes()
         Name of the device that the op is assigned to (if available).
         
        string device_name = 5;
        Specified by:
        getDeviceNameBytes in interface GraphOpCreationOrBuilder
        Returns:
        The bytes for deviceName.
      • setDeviceName

        public GraphOpCreation.Builder setDeviceName​(java.lang.String value)
         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

        public GraphOpCreation.Builder clearDeviceName()
         Name of the device that the op is assigned to (if available).
         
        string device_name = 5;
        Returns:
        This builder for chaining.
      • setDeviceNameBytes

        public GraphOpCreation.Builder setDeviceNameBytes​(com.google.protobuf.ByteString value)
         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

        public com.google.protobuf.ProtocolStringList getInputNamesList()
         Names of the input tensors to the op.
         
        repeated string input_names = 6;
        Specified by:
        getInputNamesList in interface GraphOpCreationOrBuilder
        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:
        getInputNamesCount in interface GraphOpCreationOrBuilder
        Returns:
        The count of inputNames.
      • getInputNames

        public java.lang.String getInputNames​(int index)
         Names of the input tensors to the op.
         
        repeated string input_names = 6;
        Specified by:
        getInputNames in interface GraphOpCreationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The inputNames at the given index.
      • getInputNamesBytes

        public com.google.protobuf.ByteString getInputNamesBytes​(int index)
         Names of the input tensors to the op.
         
        repeated string input_names = 6;
        Specified by:
        getInputNamesBytes in interface GraphOpCreationOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the inputNames at the given index.
      • setInputNames

        public GraphOpCreation.Builder setInputNames​(int index,
                                                     java.lang.String value)
         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

        public GraphOpCreation.Builder addInputNames​(java.lang.String value)
         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

        public GraphOpCreation.Builder addAllInputNames​(java.lang.Iterable<java.lang.String> values)
         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

        public GraphOpCreation.Builder clearInputNames()
         Names of the input tensors to the op.
         
        repeated string input_names = 6;
        Returns:
        This builder for chaining.
      • addInputNamesBytes

        public GraphOpCreation.Builder addInputNamesBytes​(com.google.protobuf.ByteString value)
         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:
        getNumOutputs in interface GraphOpCreationOrBuilder
        Returns:
        The numOutputs.
      • setNumOutputs

        public GraphOpCreation.Builder setNumOutputs​(int value)
         Number of output tensors emitted by the op.
         
        int32 num_outputs = 7;
        Parameters:
        value - The numOutputs to set.
        Returns:
        This builder for chaining.
      • clearNumOutputs

        public GraphOpCreation.Builder 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.
         
        .org.platanios.tensorflow.proto.CodeLocation code_location = 8;
        Specified by:
        hasCodeLocation in interface GraphOpCreationOrBuilder
        Returns:
        Whether the codeLocation field is set.
      • getCodeLocation

        public CodeLocation getCodeLocation()
         The unique ID for code location (stack trace) of the op's creation.
         
        .org.platanios.tensorflow.proto.CodeLocation code_location = 8;
        Specified by:
        getCodeLocation in interface GraphOpCreationOrBuilder
        Returns:
        The codeLocation.
      • setCodeLocation

        public GraphOpCreation.Builder setCodeLocation​(CodeLocation value)
         The unique ID for code location (stack trace) of the op's creation.
         
        .org.platanios.tensorflow.proto.CodeLocation code_location = 8;
      • setCodeLocation

        public GraphOpCreation.Builder setCodeLocation​(CodeLocation.Builder builderForValue)
         The unique ID for code location (stack trace) of the op's creation.
         
        .org.platanios.tensorflow.proto.CodeLocation code_location = 8;
      • mergeCodeLocation

        public GraphOpCreation.Builder mergeCodeLocation​(CodeLocation value)
         The unique ID for code location (stack trace) of the op's creation.
         
        .org.platanios.tensorflow.proto.CodeLocation code_location = 8;
      • clearCodeLocation

        public GraphOpCreation.Builder clearCodeLocation()
         The unique ID for code location (stack trace) of the op's creation.
         
        .org.platanios.tensorflow.proto.CodeLocation code_location = 8;
      • getCodeLocationBuilder

        public CodeLocation.Builder getCodeLocationBuilder()
         The unique ID for code location (stack trace) of the op's creation.
         
        .org.platanios.tensorflow.proto.CodeLocation code_location = 8;
      • getOutputTensorIdsList

        public java.util.List<java.lang.Integer> getOutputTensorIdsList()
         Unique IDs for the output tensors of this op.
         
        repeated int32 output_tensor_ids = 9;
        Specified by:
        getOutputTensorIdsList in interface GraphOpCreationOrBuilder
        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:
        getOutputTensorIdsCount in interface GraphOpCreationOrBuilder
        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:
        getOutputTensorIds in interface GraphOpCreationOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The outputTensorIds at the given index.
      • setOutputTensorIds

        public GraphOpCreation.Builder setOutputTensorIds​(int index,
                                                          int value)
         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

        public GraphOpCreation.Builder addOutputTensorIds​(int value)
         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

        public GraphOpCreation.Builder addAllOutputTensorIds​(java.lang.Iterable<? extends java.lang.Integer> values)
         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

        public GraphOpCreation.Builder clearOutputTensorIds()
         Unique IDs for the output tensors of this op.
         
        repeated int32 output_tensor_ids = 9;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final GraphOpCreation.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>
      • mergeUnknownFields

        public final GraphOpCreation.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GraphOpCreation.Builder>