Class NamespaceInvalidStateFailure.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<NamespaceInvalidStateFailure.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder>
io.temporal.api.errordetails.v1.NamespaceInvalidStateFailure.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, NamespaceInvalidStateFailureOrBuilder, Cloneable
Enclosing class:
NamespaceInvalidStateFailure

public static final class NamespaceInvalidStateFailure.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder> implements NamespaceInvalidStateFailureOrBuilder
Protobuf type temporal.api.errordetails.v1.NamespaceInvalidStateFailure
  • Method Details

    • 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>
    • 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<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

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

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

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

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

      public NamespaceInvalidStateFailure.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, 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, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder>
    • mergeFrom

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

    • 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 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:
      IOException
    • getNamespace

      public String getNamespace()
      string namespace = 1;
      Specified by:
      getNamespace in interface NamespaceInvalidStateFailureOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
      string namespace = 1;
      Specified by:
      getNamespaceBytes in interface NamespaceInvalidStateFailureOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

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

      public NamespaceInvalidStateFailure.Builder clearNamespace()
      string namespace = 1;
      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.
    • getState

      public NamespaceState getState()
       Current state of the requested namespace.
       
      .temporal.api.enums.v1.NamespaceState state = 2;
      Specified by:
      getState in interface NamespaceInvalidStateFailureOrBuilder
      Returns:
      The state.
    • setState

       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

       Current state of the requested namespace.
       
      .temporal.api.enums.v1.NamespaceState state = 2;
      Returns:
      This builder for chaining.
    • getAllowedStatesList

      public 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(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 List<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 to set the value at.
      value - The enum numeric value on the wire for allowedStates to set.
      Returns:
      This builder for chaining.
    • 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(Iterable<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.
    • setUnknownFields

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

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