Class NamespaceInvalidStateFailure.Builder

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

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

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

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

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

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

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

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

        public NamespaceInvalidStateFailure.Builder setNamespace​(java.lang.String value)
        string namespace = 1;
        Parameters:
        value - The namespace to set.
        Returns:
        This builder for chaining.
      • setNamespaceBytes

        public NamespaceInvalidStateFailure.Builder setNamespaceBytes​(com.google.protobuf.ByteString value)
        string namespace = 1;
        Parameters:
        value - The bytes for namespace to set.
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         Current state of the requested namespace.
         
        .temporal.api.enums.v1.NamespaceState state = 2;
        Specified by:
        getStateValue in interface NamespaceInvalidStateFailureOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public NamespaceInvalidStateFailure.Builder setStateValue​(int value)
         Current state of the requested namespace.
         
        .temporal.api.enums.v1.NamespaceState state = 2;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • setState

        public NamespaceInvalidStateFailure.Builder setState​(NamespaceState value)
         Current state of the requested namespace.
         
        .temporal.api.enums.v1.NamespaceState state = 2;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public NamespaceInvalidStateFailure.Builder clearState()
         Current state of the requested namespace.
         
        .temporal.api.enums.v1.NamespaceState state = 2;
        Returns:
        This builder for chaining.
      • getAllowedStatesList

        public java.util.List<NamespaceState> getAllowedStatesList()
         Allowed namespace states for requested operation.
         For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
         
        repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
        Specified by:
        getAllowedStatesList in interface NamespaceInvalidStateFailureOrBuilder
        Returns:
        A list containing the allowedStates.
      • getAllowedStatesCount

        public int getAllowedStatesCount()
         Allowed namespace states for requested operation.
         For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
         
        repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
        Specified by:
        getAllowedStatesCount in interface NamespaceInvalidStateFailureOrBuilder
        Returns:
        The count of allowedStates.
      • getAllowedStates

        public NamespaceState getAllowedStates​(int index)
         Allowed namespace states for requested operation.
         For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
         
        repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
        Specified by:
        getAllowedStates in interface NamespaceInvalidStateFailureOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The allowedStates at the given index.
      • setAllowedStates

        public NamespaceInvalidStateFailure.Builder setAllowedStates​(int index,
                                                                     NamespaceState value)
         Allowed namespace states for requested operation.
         For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
         
        repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
        Parameters:
        index - The index to set the value at.
        value - The allowedStates to set.
        Returns:
        This builder for chaining.
      • addAllowedStates

        public NamespaceInvalidStateFailure.Builder addAllowedStates​(NamespaceState value)
         Allowed namespace states for requested operation.
         For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
         
        repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
        Parameters:
        value - The allowedStates to add.
        Returns:
        This builder for chaining.
      • addAllAllowedStates

        public NamespaceInvalidStateFailure.Builder addAllAllowedStates​(java.lang.Iterable<? extends NamespaceState> values)
         Allowed namespace states for requested operation.
         For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
         
        repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
        Parameters:
        values - The allowedStates to add.
        Returns:
        This builder for chaining.
      • clearAllowedStates

        public NamespaceInvalidStateFailure.Builder clearAllowedStates()
         Allowed namespace states for requested operation.
         For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
         
        repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
        Returns:
        This builder for chaining.
      • getAllowedStatesValueList

        public java.util.List<java.lang.Integer> getAllowedStatesValueList()
         Allowed namespace states for requested operation.
         For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
         
        repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
        Specified by:
        getAllowedStatesValueList in interface NamespaceInvalidStateFailureOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for allowedStates.
      • getAllowedStatesValue

        public int getAllowedStatesValue​(int index)
         Allowed namespace states for requested operation.
         For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
         
        repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
        Specified by:
        getAllowedStatesValue in interface NamespaceInvalidStateFailureOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of allowedStates at the given index.
      • setAllowedStatesValue

        public NamespaceInvalidStateFailure.Builder setAllowedStatesValue​(int index,
                                                                          int value)
         Allowed namespace states for requested operation.
         For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
         
        repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of allowedStates at the given index.
      • addAllowedStatesValue

        public NamespaceInvalidStateFailure.Builder addAllowedStatesValue​(int value)
         Allowed namespace states for requested operation.
         For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
         
        repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
        Parameters:
        value - The enum numeric value on the wire for allowedStates to add.
        Returns:
        This builder for chaining.
      • addAllAllowedStatesValue

        public NamespaceInvalidStateFailure.Builder addAllAllowedStatesValue​(java.lang.Iterable<java.lang.Integer> values)
         Allowed namespace states for requested operation.
         For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
         
        repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
        Parameters:
        values - The enum numeric values on the wire for allowedStates to add.
        Returns:
        This builder for chaining.