Class CondContextDef.Builder

  • All Implemented Interfaces:
    Cloneable, org.nd4j.shade.protobuf.Message.Builder, org.nd4j.shade.protobuf.MessageLite.Builder, org.nd4j.shade.protobuf.MessageLiteOrBuilder, org.nd4j.shade.protobuf.MessageOrBuilder, CondContextDefOrBuilder
    Enclosing class:
    CondContextDef

    public static final class CondContextDef.Builder
    extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
    implements CondContextDefOrBuilder
     Protocol buffer representing a CondContext object.
     
    Protobuf type tensorflow.CondContextDef
    • Method Detail

      • getDescriptor

        public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
      • clear

        public CondContextDef.Builder clear()
        Specified by:
        clear in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clear in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clear in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
      • getDescriptorForType

        public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
      • getDefaultInstanceForType

        public CondContextDef getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface org.nd4j.shade.protobuf.MessageOrBuilder
      • build

        public CondContextDef build()
        Specified by:
        build in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        build in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • buildPartial

        public CondContextDef buildPartial()
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        buildPartial in interface org.nd4j.shade.protobuf.MessageLite.Builder
      • clone

        public CondContextDef.Builder clone()
        Specified by:
        clone in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        clone in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        clone in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
      • setField

        public CondContextDef.Builder setField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
      • clearField

        public CondContextDef.Builder clearField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
      • clearOneof

        public CondContextDef.Builder clearOneof​(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        clearOneof in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
      • setRepeatedField

        public CondContextDef.Builder setRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
      • addRepeatedField

        public CondContextDef.Builder addRepeatedField​(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
      • mergeFrom

        public CondContextDef.Builder mergeFrom​(org.nd4j.shade.protobuf.Message other)
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<CondContextDef.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface org.nd4j.shade.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
      • mergeFrom

        public CondContextDef.Builder mergeFrom​(org.nd4j.shade.protobuf.CodedInputStream input,
                                                org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface org.nd4j.shade.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class org.nd4j.shade.protobuf.AbstractMessage.Builder<CondContextDef.Builder>
        Throws:
        IOException
      • getContextNameBytes

        public org.nd4j.shade.protobuf.ByteString getContextNameBytes()
         Name of the context.
         
        string context_name = 1;
        Specified by:
        getContextNameBytes in interface CondContextDefOrBuilder
        Returns:
        The bytes for contextName.
      • setContextName

        public CondContextDef.Builder setContextName​(String value)
         Name of the context.
         
        string context_name = 1;
        Parameters:
        value - The contextName to set.
        Returns:
        This builder for chaining.
      • clearContextName

        public CondContextDef.Builder clearContextName()
         Name of the context.
         
        string context_name = 1;
        Returns:
        This builder for chaining.
      • setContextNameBytes

        public CondContextDef.Builder setContextNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         Name of the context.
         
        string context_name = 1;
        Parameters:
        value - The bytes for contextName to set.
        Returns:
        This builder for chaining.
      • getPredNameBytes

        public org.nd4j.shade.protobuf.ByteString getPredNameBytes()
         Name of the pred tensor.
         
        string pred_name = 2;
        Specified by:
        getPredNameBytes in interface CondContextDefOrBuilder
        Returns:
        The bytes for predName.
      • setPredName

        public CondContextDef.Builder setPredName​(String value)
         Name of the pred tensor.
         
        string pred_name = 2;
        Parameters:
        value - The predName to set.
        Returns:
        This builder for chaining.
      • clearPredName

        public CondContextDef.Builder clearPredName()
         Name of the pred tensor.
         
        string pred_name = 2;
        Returns:
        This builder for chaining.
      • setPredNameBytes

        public CondContextDef.Builder setPredNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         Name of the pred tensor.
         
        string pred_name = 2;
        Parameters:
        value - The bytes for predName to set.
        Returns:
        This builder for chaining.
      • getPivotNameBytes

        public org.nd4j.shade.protobuf.ByteString getPivotNameBytes()
         Name of the pivot tensor.
         
        string pivot_name = 3;
        Specified by:
        getPivotNameBytes in interface CondContextDefOrBuilder
        Returns:
        The bytes for pivotName.
      • setPivotName

        public CondContextDef.Builder setPivotName​(String value)
         Name of the pivot tensor.
         
        string pivot_name = 3;
        Parameters:
        value - The pivotName to set.
        Returns:
        This builder for chaining.
      • clearPivotName

        public CondContextDef.Builder clearPivotName()
         Name of the pivot tensor.
         
        string pivot_name = 3;
        Returns:
        This builder for chaining.
      • setPivotNameBytes

        public CondContextDef.Builder setPivotNameBytes​(org.nd4j.shade.protobuf.ByteString value)
         Name of the pivot tensor.
         
        string pivot_name = 3;
        Parameters:
        value - The bytes for pivotName to set.
        Returns:
        This builder for chaining.
      • getBranch

        public int getBranch()
         Branch prediction. 0 or 1.
         
        int32 branch = 4;
        Specified by:
        getBranch in interface CondContextDefOrBuilder
        Returns:
        The branch.
      • setBranch

        public CondContextDef.Builder setBranch​(int value)
         Branch prediction. 0 or 1.
         
        int32 branch = 4;
        Parameters:
        value - The branch to set.
        Returns:
        This builder for chaining.
      • clearBranch

        public CondContextDef.Builder clearBranch()
         Branch prediction. 0 or 1.
         
        int32 branch = 4;
        Returns:
        This builder for chaining.
      • hasValuesDef

        public boolean hasValuesDef()
         Values and external values in control flow context.
         
        .tensorflow.ValuesDef values_def = 5;
        Specified by:
        hasValuesDef in interface CondContextDefOrBuilder
        Returns:
        Whether the valuesDef field is set.
      • getValuesDef

        public ValuesDef getValuesDef()
         Values and external values in control flow context.
         
        .tensorflow.ValuesDef values_def = 5;
        Specified by:
        getValuesDef in interface CondContextDefOrBuilder
        Returns:
        The valuesDef.
      • setValuesDef

        public CondContextDef.Builder setValuesDef​(ValuesDef value)
         Values and external values in control flow context.
         
        .tensorflow.ValuesDef values_def = 5;
      • mergeValuesDef

        public CondContextDef.Builder mergeValuesDef​(ValuesDef value)
         Values and external values in control flow context.
         
        .tensorflow.ValuesDef values_def = 5;
      • clearValuesDef

        public CondContextDef.Builder clearValuesDef()
         Values and external values in control flow context.
         
        .tensorflow.ValuesDef values_def = 5;
      • getValuesDefBuilder

        public ValuesDef.Builder getValuesDefBuilder()
         Values and external values in control flow context.
         
        .tensorflow.ValuesDef values_def = 5;
      • getNestedContextsCount

        public int getNestedContextsCount()
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
        Specified by:
        getNestedContextsCount in interface CondContextDefOrBuilder
      • setNestedContexts

        public CondContextDef.Builder setNestedContexts​(int index,
                                                        ControlFlowContextDef value)
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      • setNestedContexts

        public CondContextDef.Builder setNestedContexts​(int index,
                                                        ControlFlowContextDef.Builder builderForValue)
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      • addNestedContexts

        public CondContextDef.Builder addNestedContexts​(ControlFlowContextDef value)
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      • addNestedContexts

        public CondContextDef.Builder addNestedContexts​(int index,
                                                        ControlFlowContextDef value)
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      • addNestedContexts

        public CondContextDef.Builder addNestedContexts​(int index,
                                                        ControlFlowContextDef.Builder builderForValue)
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      • clearNestedContexts

        public CondContextDef.Builder clearNestedContexts()
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      • removeNestedContexts

        public CondContextDef.Builder removeNestedContexts​(int index)
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      • getNestedContextsBuilder

        public ControlFlowContextDef.Builder getNestedContextsBuilder​(int index)
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      • addNestedContextsBuilder

        public ControlFlowContextDef.Builder addNestedContextsBuilder()
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      • addNestedContextsBuilder

        public ControlFlowContextDef.Builder addNestedContextsBuilder​(int index)
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      • getNestedContextsBuilderList

        public List<ControlFlowContextDef.Builder> getNestedContextsBuilderList()
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
      • setUnknownFields

        public final CondContextDef.Builder setUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
      • mergeUnknownFields

        public final CondContextDef.Builder mergeUnknownFields​(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface org.nd4j.shade.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>