Package io.temporal.api.errordetails.v1
Class NamespaceInvalidStateFailure.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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
,java.lang.Cloneable
- Enclosing class:
- NamespaceInvalidStateFailure
public static final class NamespaceInvalidStateFailure.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder> implements NamespaceInvalidStateFailureOrBuilder
Protobuf typetemporal.api.errordetails.v1.NamespaceInvalidStateFailure
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NamespaceInvalidStateFailure.Builder
addAllAllowedStates(java.lang.Iterable<? extends NamespaceState> values)
Allowed namespace states for requested operation.NamespaceInvalidStateFailure.Builder
addAllAllowedStatesValue(java.lang.Iterable<java.lang.Integer> values)
Allowed namespace states for requested operation.NamespaceInvalidStateFailure.Builder
addAllowedStates(NamespaceState value)
Allowed namespace states for requested operation.NamespaceInvalidStateFailure.Builder
addAllowedStatesValue(int value)
Allowed namespace states for requested operation.NamespaceInvalidStateFailure.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
NamespaceInvalidStateFailure
build()
NamespaceInvalidStateFailure
buildPartial()
NamespaceInvalidStateFailure.Builder
clear()
NamespaceInvalidStateFailure.Builder
clearAllowedStates()
Allowed namespace states for requested operation.NamespaceInvalidStateFailure.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
NamespaceInvalidStateFailure.Builder
clearNamespace()
string namespace = 1;
NamespaceInvalidStateFailure.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
NamespaceInvalidStateFailure.Builder
clearState()
Current state of the requested namespace.NamespaceInvalidStateFailure.Builder
clone()
NamespaceState
getAllowedStates(int index)
Allowed namespace states for requested operation.int
getAllowedStatesCount()
Allowed namespace states for requested operation.java.util.List<NamespaceState>
getAllowedStatesList()
Allowed namespace states for requested operation.int
getAllowedStatesValue(int index)
Allowed namespace states for requested operation.java.util.List<java.lang.Integer>
getAllowedStatesValueList()
Allowed namespace states for requested operation.NamespaceInvalidStateFailure
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getNamespace()
string namespace = 1;
com.google.protobuf.ByteString
getNamespaceBytes()
string namespace = 1;
NamespaceState
getState()
Current state of the requested namespace.int
getStateValue()
Current state of the requested namespace.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
NamespaceInvalidStateFailure.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
NamespaceInvalidStateFailure.Builder
mergeFrom(com.google.protobuf.Message other)
NamespaceInvalidStateFailure.Builder
mergeFrom(NamespaceInvalidStateFailure other)
NamespaceInvalidStateFailure.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
NamespaceInvalidStateFailure.Builder
setAllowedStates(int index, NamespaceState value)
Allowed namespace states for requested operation.NamespaceInvalidStateFailure.Builder
setAllowedStatesValue(int index, int value)
Allowed namespace states for requested operation.NamespaceInvalidStateFailure.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
NamespaceInvalidStateFailure.Builder
setNamespace(java.lang.String value)
string namespace = 1;
NamespaceInvalidStateFailure.Builder
setNamespaceBytes(com.google.protobuf.ByteString value)
string namespace = 1;
NamespaceInvalidStateFailure.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
NamespaceInvalidStateFailure.Builder
setState(NamespaceState value)
Current state of the requested namespace.NamespaceInvalidStateFailure.Builder
setStateValue(int value)
Current state of the requested namespace.NamespaceInvalidStateFailure.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder>
-
clear
public NamespaceInvalidStateFailure.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder>
-
getDefaultInstanceForType
public NamespaceInvalidStateFailure getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public NamespaceInvalidStateFailure build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public NamespaceInvalidStateFailure buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public NamespaceInvalidStateFailure.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder>
-
setField
public NamespaceInvalidStateFailure.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder>
-
clearField
public NamespaceInvalidStateFailure.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder>
-
clearOneof
public NamespaceInvalidStateFailure.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder>
-
setRepeatedField
public NamespaceInvalidStateFailure.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder>
-
mergeFrom
public NamespaceInvalidStateFailure.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NamespaceInvalidStateFailure.Builder>
-
mergeFrom
public NamespaceInvalidStateFailure.Builder mergeFrom(NamespaceInvalidStateFailure other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<NamespaceInvalidStateFailure.Builder>
- Throws:
java.io.IOException
-
getNamespace
public java.lang.String getNamespace()
string namespace = 1;
- Specified by:
getNamespace
in interfaceNamespaceInvalidStateFailureOrBuilder
- Returns:
- The namespace.
-
getNamespaceBytes
public com.google.protobuf.ByteString getNamespaceBytes()
string namespace = 1;
- Specified by:
getNamespaceBytes
in interfaceNamespaceInvalidStateFailureOrBuilder
- Returns:
- The bytes for namespace.
-
setNamespace
public NamespaceInvalidStateFailure.Builder setNamespace(java.lang.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 interfaceNamespaceInvalidStateFailureOrBuilder
- 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 interfaceNamespaceInvalidStateFailureOrBuilder
- Returns:
- The state.
-
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 interfaceNamespaceInvalidStateFailureOrBuilder
- 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 interfaceNamespaceInvalidStateFailureOrBuilder
- 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 interfaceNamespaceInvalidStateFailureOrBuilder
- 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 interfaceNamespaceInvalidStateFailureOrBuilder
- 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 interfaceNamespaceInvalidStateFailureOrBuilder
- 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.
-
setUnknownFields
public final NamespaceInvalidStateFailure.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder>
-
mergeUnknownFields
public final NamespaceInvalidStateFailure.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<NamespaceInvalidStateFailure.Builder>
-
-