Class CostGraphDef.Node.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, CostGraphDef.NodeOrBuilder
    Enclosing class:
    CostGraphDef.Node

    public static final class CostGraphDef.Node.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CostGraphDef.Node.Builder>
    implements CostGraphDef.NodeOrBuilder
    Protobuf type org.platanios.tensorflow.proto.CostGraphDef.Node
    • 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<CostGraphDef.Node.Builder>
      • clear

        public CostGraphDef.Node.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<CostGraphDef.Node.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<CostGraphDef.Node.Builder>
      • getDefaultInstanceForType

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

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

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

        public CostGraphDef.Node.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<CostGraphDef.Node.Builder>
      • setField

        public CostGraphDef.Node.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<CostGraphDef.Node.Builder>
      • clearField

        public CostGraphDef.Node.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<CostGraphDef.Node.Builder>
      • clearOneof

        public CostGraphDef.Node.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<CostGraphDef.Node.Builder>
      • setRepeatedField

        public CostGraphDef.Node.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<CostGraphDef.Node.Builder>
      • addRepeatedField

        public CostGraphDef.Node.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<CostGraphDef.Node.Builder>
      • mergeFrom

        public CostGraphDef.Node.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<CostGraphDef.Node.Builder>
      • isInitialized

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

        public CostGraphDef.Node.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<CostGraphDef.Node.Builder>
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
         The name of the node. Names are globally unique.
         
        string name = 1;
        Specified by:
        getName in interface CostGraphDef.NodeOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the node. Names are globally unique.
         
        string name = 1;
        Specified by:
        getNameBytes in interface CostGraphDef.NodeOrBuilder
        Returns:
        The bytes for name.
      • setName

        public CostGraphDef.Node.Builder setName​(java.lang.String value)
         The name of the node. Names are globally unique.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public CostGraphDef.Node.Builder clearName()
         The name of the node. Names are globally unique.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public CostGraphDef.Node.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the node. Names are globally unique.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDevice

        public java.lang.String getDevice()
         The device of the node. Can be empty if the node is mapped to the
         default partition or partitioning hasn't been run yet.
         
        string device = 2;
        Specified by:
        getDevice in interface CostGraphDef.NodeOrBuilder
        Returns:
        The device.
      • getDeviceBytes

        public com.google.protobuf.ByteString getDeviceBytes()
         The device of the node. Can be empty if the node is mapped to the
         default partition or partitioning hasn't been run yet.
         
        string device = 2;
        Specified by:
        getDeviceBytes in interface CostGraphDef.NodeOrBuilder
        Returns:
        The bytes for device.
      • setDevice

        public CostGraphDef.Node.Builder setDevice​(java.lang.String value)
         The device of the node. Can be empty if the node is mapped to the
         default partition or partitioning hasn't been run yet.
         
        string device = 2;
        Parameters:
        value - The device to set.
        Returns:
        This builder for chaining.
      • clearDevice

        public CostGraphDef.Node.Builder clearDevice()
         The device of the node. Can be empty if the node is mapped to the
         default partition or partitioning hasn't been run yet.
         
        string device = 2;
        Returns:
        This builder for chaining.
      • setDeviceBytes

        public CostGraphDef.Node.Builder setDeviceBytes​(com.google.protobuf.ByteString value)
         The device of the node. Can be empty if the node is mapped to the
         default partition or partitioning hasn't been run yet.
         
        string device = 2;
        Parameters:
        value - The bytes for device to set.
        Returns:
        This builder for chaining.
      • getId

        public int getId()
         The id of the node. Node ids are only unique inside a partition.
         
        int32 id = 3;
        Specified by:
        getId in interface CostGraphDef.NodeOrBuilder
        Returns:
        The id.
      • setId

        public CostGraphDef.Node.Builder setId​(int value)
         The id of the node. Node ids are only unique inside a partition.
         
        int32 id = 3;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public CostGraphDef.Node.Builder clearId()
         The id of the node. Node ids are only unique inside a partition.
         
        int32 id = 3;
        Returns:
        This builder for chaining.
      • clearInputInfo

        public CostGraphDef.Node.Builder clearInputInfo()
        repeated .org.platanios.tensorflow.proto.CostGraphDef.Node.InputInfo input_info = 4;
      • removeInputInfo

        public CostGraphDef.Node.Builder removeInputInfo​(int index)
        repeated .org.platanios.tensorflow.proto.CostGraphDef.Node.InputInfo input_info = 4;
      • getInputInfoBuilder

        public CostGraphDef.Node.InputInfo.Builder getInputInfoBuilder​(int index)
        repeated .org.platanios.tensorflow.proto.CostGraphDef.Node.InputInfo input_info = 4;
      • addInputInfoBuilder

        public CostGraphDef.Node.InputInfo.Builder addInputInfoBuilder​(int index)
        repeated .org.platanios.tensorflow.proto.CostGraphDef.Node.InputInfo input_info = 4;
      • getInputInfoBuilderList

        public java.util.List<CostGraphDef.Node.InputInfo.Builder> getInputInfoBuilderList()
        repeated .org.platanios.tensorflow.proto.CostGraphDef.Node.InputInfo input_info = 4;
      • clearOutputInfo

        public CostGraphDef.Node.Builder clearOutputInfo()
        repeated .org.platanios.tensorflow.proto.CostGraphDef.Node.OutputInfo output_info = 5;
      • removeOutputInfo

        public CostGraphDef.Node.Builder removeOutputInfo​(int index)
        repeated .org.platanios.tensorflow.proto.CostGraphDef.Node.OutputInfo output_info = 5;
      • getOutputInfoBuilder

        public CostGraphDef.Node.OutputInfo.Builder getOutputInfoBuilder​(int index)
        repeated .org.platanios.tensorflow.proto.CostGraphDef.Node.OutputInfo output_info = 5;
      • addOutputInfoBuilder

        public CostGraphDef.Node.OutputInfo.Builder addOutputInfoBuilder​(int index)
        repeated .org.platanios.tensorflow.proto.CostGraphDef.Node.OutputInfo output_info = 5;
      • getOutputInfoBuilderList

        public java.util.List<CostGraphDef.Node.OutputInfo.Builder> getOutputInfoBuilderList()
        repeated .org.platanios.tensorflow.proto.CostGraphDef.Node.OutputInfo output_info = 5;
      • getTemporaryMemorySize

        public long getTemporaryMemorySize()
         Temporary memory used by this node.
         
        int64 temporary_memory_size = 6;
        Specified by:
        getTemporaryMemorySize in interface CostGraphDef.NodeOrBuilder
        Returns:
        The temporaryMemorySize.
      • setTemporaryMemorySize

        public CostGraphDef.Node.Builder setTemporaryMemorySize​(long value)
         Temporary memory used by this node.
         
        int64 temporary_memory_size = 6;
        Parameters:
        value - The temporaryMemorySize to set.
        Returns:
        This builder for chaining.
      • clearTemporaryMemorySize

        public CostGraphDef.Node.Builder clearTemporaryMemorySize()
         Temporary memory used by this node.
         
        int64 temporary_memory_size = 6;
        Returns:
        This builder for chaining.
      • getPersistentMemorySize

        public long getPersistentMemorySize()
         Persistent memory used by this node.
         
        int64 persistent_memory_size = 12;
        Specified by:
        getPersistentMemorySize in interface CostGraphDef.NodeOrBuilder
        Returns:
        The persistentMemorySize.
      • setPersistentMemorySize

        public CostGraphDef.Node.Builder setPersistentMemorySize​(long value)
         Persistent memory used by this node.
         
        int64 persistent_memory_size = 12;
        Parameters:
        value - The persistentMemorySize to set.
        Returns:
        This builder for chaining.
      • clearPersistentMemorySize

        public CostGraphDef.Node.Builder clearPersistentMemorySize()
         Persistent memory used by this node.
         
        int64 persistent_memory_size = 12;
        Returns:
        This builder for chaining.
      • getHostTempMemorySize

        @Deprecated
        public long getHostTempMemorySize()
        Deprecated.
        int64 host_temp_memory_size = 10 [deprecated = true];
        Specified by:
        getHostTempMemorySize in interface CostGraphDef.NodeOrBuilder
        Returns:
        The hostTempMemorySize.
      • setHostTempMemorySize

        @Deprecated
        public CostGraphDef.Node.Builder setHostTempMemorySize​(long value)
        Deprecated.
        int64 host_temp_memory_size = 10 [deprecated = true];
        Parameters:
        value - The hostTempMemorySize to set.
        Returns:
        This builder for chaining.
      • clearHostTempMemorySize

        @Deprecated
        public CostGraphDef.Node.Builder clearHostTempMemorySize()
        Deprecated.
        int64 host_temp_memory_size = 10 [deprecated = true];
        Returns:
        This builder for chaining.
      • getDeviceTempMemorySize

        @Deprecated
        public long getDeviceTempMemorySize()
        Deprecated.
        int64 device_temp_memory_size = 11 [deprecated = true];
        Specified by:
        getDeviceTempMemorySize in interface CostGraphDef.NodeOrBuilder
        Returns:
        The deviceTempMemorySize.
      • setDeviceTempMemorySize

        @Deprecated
        public CostGraphDef.Node.Builder setDeviceTempMemorySize​(long value)
        Deprecated.
        int64 device_temp_memory_size = 11 [deprecated = true];
        Parameters:
        value - The deviceTempMemorySize to set.
        Returns:
        This builder for chaining.
      • clearDeviceTempMemorySize

        @Deprecated
        public CostGraphDef.Node.Builder clearDeviceTempMemorySize()
        Deprecated.
        int64 device_temp_memory_size = 11 [deprecated = true];
        Returns:
        This builder for chaining.
      • getDevicePersistentMemorySize

        @Deprecated
        public long getDevicePersistentMemorySize()
        Deprecated.
        int64 device_persistent_memory_size = 16 [deprecated = true];
        Specified by:
        getDevicePersistentMemorySize in interface CostGraphDef.NodeOrBuilder
        Returns:
        The devicePersistentMemorySize.
      • setDevicePersistentMemorySize

        @Deprecated
        public CostGraphDef.Node.Builder setDevicePersistentMemorySize​(long value)
        Deprecated.
        int64 device_persistent_memory_size = 16 [deprecated = true];
        Parameters:
        value - The devicePersistentMemorySize to set.
        Returns:
        This builder for chaining.
      • clearDevicePersistentMemorySize

        @Deprecated
        public CostGraphDef.Node.Builder clearDevicePersistentMemorySize()
        Deprecated.
        int64 device_persistent_memory_size = 16 [deprecated = true];
        Returns:
        This builder for chaining.
      • getComputeCost

        public long getComputeCost()
         Estimate of the computational cost of this node, in microseconds.
         
        int64 compute_cost = 9;
        Specified by:
        getComputeCost in interface CostGraphDef.NodeOrBuilder
        Returns:
        The computeCost.
      • setComputeCost

        public CostGraphDef.Node.Builder setComputeCost​(long value)
         Estimate of the computational cost of this node, in microseconds.
         
        int64 compute_cost = 9;
        Parameters:
        value - The computeCost to set.
        Returns:
        This builder for chaining.
      • clearComputeCost

        public CostGraphDef.Node.Builder clearComputeCost()
         Estimate of the computational cost of this node, in microseconds.
         
        int64 compute_cost = 9;
        Returns:
        This builder for chaining.
      • getComputeTime

        public long getComputeTime()
         Analytical estimate of the computational cost of this node, in
         microseconds.
         
        int64 compute_time = 14;
        Specified by:
        getComputeTime in interface CostGraphDef.NodeOrBuilder
        Returns:
        The computeTime.
      • setComputeTime

        public CostGraphDef.Node.Builder setComputeTime​(long value)
         Analytical estimate of the computational cost of this node, in
         microseconds.
         
        int64 compute_time = 14;
        Parameters:
        value - The computeTime to set.
        Returns:
        This builder for chaining.
      • clearComputeTime

        public CostGraphDef.Node.Builder clearComputeTime()
         Analytical estimate of the computational cost of this node, in
         microseconds.
         
        int64 compute_time = 14;
        Returns:
        This builder for chaining.
      • getMemoryTime

        public long getMemoryTime()
         Analytical estimate of the memory access cost of this node, in
         microseconds.
         
        int64 memory_time = 15;
        Specified by:
        getMemoryTime in interface CostGraphDef.NodeOrBuilder
        Returns:
        The memoryTime.
      • setMemoryTime

        public CostGraphDef.Node.Builder setMemoryTime​(long value)
         Analytical estimate of the memory access cost of this node, in
         microseconds.
         
        int64 memory_time = 15;
        Parameters:
        value - The memoryTime to set.
        Returns:
        This builder for chaining.
      • clearMemoryTime

        public CostGraphDef.Node.Builder clearMemoryTime()
         Analytical estimate of the memory access cost of this node, in
         microseconds.
         
        int64 memory_time = 15;
        Returns:
        This builder for chaining.
      • getIsFinal

        public boolean getIsFinal()
         If true, the output is permanent: it can't be discarded, because this
         node is part of the "final output". Nodes may depend on final nodes.
         
        bool is_final = 7;
        Specified by:
        getIsFinal in interface CostGraphDef.NodeOrBuilder
        Returns:
        The isFinal.
      • setIsFinal

        public CostGraphDef.Node.Builder setIsFinal​(boolean value)
         If true, the output is permanent: it can't be discarded, because this
         node is part of the "final output". Nodes may depend on final nodes.
         
        bool is_final = 7;
        Parameters:
        value - The isFinal to set.
        Returns:
        This builder for chaining.
      • clearIsFinal

        public CostGraphDef.Node.Builder clearIsFinal()
         If true, the output is permanent: it can't be discarded, because this
         node is part of the "final output". Nodes may depend on final nodes.
         
        bool is_final = 7;
        Returns:
        This builder for chaining.
      • getControlInputList

        public java.util.List<java.lang.Integer> getControlInputList()
         Ids of the control inputs for this node.
         
        repeated int32 control_input = 8;
        Specified by:
        getControlInputList in interface CostGraphDef.NodeOrBuilder
        Returns:
        A list containing the controlInput.
      • getControlInputCount

        public int getControlInputCount()
         Ids of the control inputs for this node.
         
        repeated int32 control_input = 8;
        Specified by:
        getControlInputCount in interface CostGraphDef.NodeOrBuilder
        Returns:
        The count of controlInput.
      • getControlInput

        public int getControlInput​(int index)
         Ids of the control inputs for this node.
         
        repeated int32 control_input = 8;
        Specified by:
        getControlInput in interface CostGraphDef.NodeOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The controlInput at the given index.
      • setControlInput

        public CostGraphDef.Node.Builder setControlInput​(int index,
                                                         int value)
         Ids of the control inputs for this node.
         
        repeated int32 control_input = 8;
        Parameters:
        index - The index to set the value at.
        value - The controlInput to set.
        Returns:
        This builder for chaining.
      • addControlInput

        public CostGraphDef.Node.Builder addControlInput​(int value)
         Ids of the control inputs for this node.
         
        repeated int32 control_input = 8;
        Parameters:
        value - The controlInput to add.
        Returns:
        This builder for chaining.
      • addAllControlInput

        public CostGraphDef.Node.Builder addAllControlInput​(java.lang.Iterable<? extends java.lang.Integer> values)
         Ids of the control inputs for this node.
         
        repeated int32 control_input = 8;
        Parameters:
        values - The controlInput to add.
        Returns:
        This builder for chaining.
      • clearControlInput

        public CostGraphDef.Node.Builder clearControlInput()
         Ids of the control inputs for this node.
         
        repeated int32 control_input = 8;
        Returns:
        This builder for chaining.
      • setInaccurate

        public CostGraphDef.Node.Builder setInaccurate​(boolean value)
         Are the costs inaccurate?
         
        bool inaccurate = 17;
        Parameters:
        value - The inaccurate to set.
        Returns:
        This builder for chaining.
      • clearInaccurate

        public CostGraphDef.Node.Builder clearInaccurate()
         Are the costs inaccurate?
         
        bool inaccurate = 17;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CostGraphDef.Node.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<CostGraphDef.Node.Builder>
      • mergeUnknownFields

        public final CostGraphDef.Node.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<CostGraphDef.Node.Builder>