Class CondContextDef.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, CondContextDefOrBuilder
    Enclosing class:
    CondContextDef

    public static final class CondContextDef.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
    implements CondContextDefOrBuilder
     Protocol buffer representing a CondContext object.
     
    Protobuf type org.platanios.tensorflow.proto.CondContextDef
    • 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<CondContextDef.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public CondContextDef.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<CondContextDef.Builder>
        Throws:
        java.io.IOException
      • getContextName

        public java.lang.String getContextName()
         Name of the context.
         
        string context_name = 1;
        Specified by:
        getContextName in interface CondContextDefOrBuilder
        Returns:
        The contextName.
      • getContextNameBytes

        public com.google.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​(java.lang.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​(com.google.protobuf.ByteString value)
         Name of the context.
         
        string context_name = 1;
        Parameters:
        value - The bytes for contextName to set.
        Returns:
        This builder for chaining.
      • getPredName

        public java.lang.String getPredName()
         Name of the pred tensor.
         
        string pred_name = 2;
        Specified by:
        getPredName in interface CondContextDefOrBuilder
        Returns:
        The predName.
      • getPredNameBytes

        public com.google.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​(java.lang.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​(com.google.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.
      • getPivotName

        public java.lang.String getPivotName()
         Name of the pivot tensor.
         
        string pivot_name = 3;
        Specified by:
        getPivotName in interface CondContextDefOrBuilder
        Returns:
        The pivotName.
      • getPivotNameBytes

        public com.google.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​(java.lang.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​(com.google.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.
         
        .org.platanios.tensorflow.proto.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.
         
        .org.platanios.tensorflow.proto.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.
         
        .org.platanios.tensorflow.proto.ValuesDef values_def = 5;
      • setValuesDef

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

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

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

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

        public int getNestedContextsCount()
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .org.platanios.tensorflow.proto.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 .org.platanios.tensorflow.proto.ControlFlowContextDef nested_contexts = 6;
      • setNestedContexts

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

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

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

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

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

        public CondContextDef.Builder addAllNestedContexts​(java.lang.Iterable<? extends ControlFlowContextDef> values)
         Contexts contained inside this context (e.g. nested conds).
         
        repeated .org.platanios.tensorflow.proto.ControlFlowContextDef nested_contexts = 6;
      • clearNestedContexts

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

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

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

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

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

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

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

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