Class Namespace

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, NamespaceOrBuilder, java.io.Serializable

    @Generated(value="protoc",
               comments="annotations:Namespace.java.pb.meta")
    public final class Namespace
    extends com.google.protobuf.GeneratedMessageV3
    implements NamespaceOrBuilder
    Protobuf type temporal.api.cloud.namespace.v1.Namespace
    See Also:
    Serialized Form
    • Field Detail

      • RESOURCE_VERSION_FIELD_NUMBER

        public static final int RESOURCE_VERSION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • STATE_DEPRECATED_FIELD_NUMBER

        public static final int STATE_DEPRECATED_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ASYNC_OPERATION_ID_FIELD_NUMBER

        public static final int ASYNC_OPERATION_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ACTIVE_REGION_FIELD_NUMBER

        public static final int ACTIVE_REGION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRIVATE_CONNECTIVITIES_FIELD_NUMBER

        public static final int PRIVATE_CONNECTIVITIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CREATED_TIME_FIELD_NUMBER

        public static final int CREATED_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • LAST_MODIFIED_TIME_FIELD_NUMBER

        public static final int LAST_MODIFIED_TIME_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REGION_STATUS_FIELD_NUMBER

        public static final int REGION_STATUS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CONNECTIVITY_RULES_FIELD_NUMBER

        public static final int CONNECTIVITY_RULES_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getNamespace

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

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

        public java.lang.String getResourceVersion()
         The current version of the namespace specification.
         The next update operation will have to include this version.
         
        string resource_version = 2;
        Specified by:
        getResourceVersion in interface NamespaceOrBuilder
        Returns:
        The resourceVersion.
      • getResourceVersionBytes

        public com.google.protobuf.ByteString getResourceVersionBytes()
         The current version of the namespace specification.
         The next update operation will have to include this version.
         
        string resource_version = 2;
        Specified by:
        getResourceVersionBytes in interface NamespaceOrBuilder
        Returns:
        The bytes for resourceVersion.
      • hasSpec

        public boolean hasSpec()
         The namespace specification.
         
        .temporal.api.cloud.namespace.v1.NamespaceSpec spec = 3;
        Specified by:
        hasSpec in interface NamespaceOrBuilder
        Returns:
        Whether the spec field is set.
      • getSpec

        public NamespaceSpec getSpec()
         The namespace specification.
         
        .temporal.api.cloud.namespace.v1.NamespaceSpec spec = 3;
        Specified by:
        getSpec in interface NamespaceOrBuilder
        Returns:
        The spec.
      • getStateDeprecated

        @Deprecated
        public java.lang.String getStateDeprecated()
        Deprecated.
        temporal.api.cloud.namespace.v1.Namespace.state_deprecated is deprecated. See temporal/api/cloud/namespace/v1/message.proto;l=202
         The current state of the namespace.
         Deprecated: Not supported after v0.3.0 api version. Use state instead.
         temporal:versioning:max_version=v0.3.0
         
        string state_deprecated = 4 [deprecated = true];
        Specified by:
        getStateDeprecated in interface NamespaceOrBuilder
        Returns:
        The stateDeprecated.
      • getStateDeprecatedBytes

        @Deprecated
        public com.google.protobuf.ByteString getStateDeprecatedBytes()
        Deprecated.
        temporal.api.cloud.namespace.v1.Namespace.state_deprecated is deprecated. See temporal/api/cloud/namespace/v1/message.proto;l=202
         The current state of the namespace.
         Deprecated: Not supported after v0.3.0 api version. Use state instead.
         temporal:versioning:max_version=v0.3.0
         
        string state_deprecated = 4 [deprecated = true];
        Specified by:
        getStateDeprecatedBytes in interface NamespaceOrBuilder
        Returns:
        The bytes for stateDeprecated.
      • getStateValue

        public int getStateValue()
         The current state of the namespace.
         For any failed state, reach out to Temporal Cloud support for remediation.
         temporal:versioning:min_version=v0.3.0
         temporal:enums:replaces=state_deprecated
         
        .temporal.api.cloud.resource.v1.ResourceState state = 13;
        Specified by:
        getStateValue in interface NamespaceOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getState

        public ResourceState getState()
         The current state of the namespace.
         For any failed state, reach out to Temporal Cloud support for remediation.
         temporal:versioning:min_version=v0.3.0
         temporal:enums:replaces=state_deprecated
         
        .temporal.api.cloud.resource.v1.ResourceState state = 13;
        Specified by:
        getState in interface NamespaceOrBuilder
        Returns:
        The state.
      • getAsyncOperationId

        public java.lang.String getAsyncOperationId()
         The id of the async operation that is creating/updating/deleting the namespace, if any.
         
        string async_operation_id = 5;
        Specified by:
        getAsyncOperationId in interface NamespaceOrBuilder
        Returns:
        The asyncOperationId.
      • getAsyncOperationIdBytes

        public com.google.protobuf.ByteString getAsyncOperationIdBytes()
         The id of the async operation that is creating/updating/deleting the namespace, if any.
         
        string async_operation_id = 5;
        Specified by:
        getAsyncOperationIdBytes in interface NamespaceOrBuilder
        Returns:
        The bytes for asyncOperationId.
      • hasEndpoints

        public boolean hasEndpoints()
         The endpoints for the namespace.
         
        .temporal.api.cloud.namespace.v1.Endpoints endpoints = 6;
        Specified by:
        hasEndpoints in interface NamespaceOrBuilder
        Returns:
        Whether the endpoints field is set.
      • getEndpoints

        public Endpoints getEndpoints()
         The endpoints for the namespace.
         
        .temporal.api.cloud.namespace.v1.Endpoints endpoints = 6;
        Specified by:
        getEndpoints in interface NamespaceOrBuilder
        Returns:
        The endpoints.
      • getActiveRegion

        public java.lang.String getActiveRegion()
         The currently active region for the namespace.
         
        string active_region = 7;
        Specified by:
        getActiveRegion in interface NamespaceOrBuilder
        Returns:
        The activeRegion.
      • getActiveRegionBytes

        public com.google.protobuf.ByteString getActiveRegionBytes()
         The currently active region for the namespace.
         
        string active_region = 7;
        Specified by:
        getActiveRegionBytes in interface NamespaceOrBuilder
        Returns:
        The bytes for activeRegion.
      • hasLimits

        public boolean hasLimits()
         The limits set on the namespace currently.
         
        .temporal.api.cloud.namespace.v1.Limits limits = 8;
        Specified by:
        hasLimits in interface NamespaceOrBuilder
        Returns:
        Whether the limits field is set.
      • getLimits

        public Limits getLimits()
         The limits set on the namespace currently.
         
        .temporal.api.cloud.namespace.v1.Limits limits = 8;
        Specified by:
        getLimits in interface NamespaceOrBuilder
        Returns:
        The limits.
      • getPrivateConnectivitiesList

        public java.util.List<PrivateConnectivity> getPrivateConnectivitiesList()
         The private connectivities for the namespace, if any.
         
        repeated .temporal.api.cloud.namespace.v1.PrivateConnectivity private_connectivities = 9;
        Specified by:
        getPrivateConnectivitiesList in interface NamespaceOrBuilder
      • getPrivateConnectivitiesCount

        public int getPrivateConnectivitiesCount()
         The private connectivities for the namespace, if any.
         
        repeated .temporal.api.cloud.namespace.v1.PrivateConnectivity private_connectivities = 9;
        Specified by:
        getPrivateConnectivitiesCount in interface NamespaceOrBuilder
      • getPrivateConnectivities

        public PrivateConnectivity getPrivateConnectivities​(int index)
         The private connectivities for the namespace, if any.
         
        repeated .temporal.api.cloud.namespace.v1.PrivateConnectivity private_connectivities = 9;
        Specified by:
        getPrivateConnectivities in interface NamespaceOrBuilder
      • hasCreatedTime

        public boolean hasCreatedTime()
         The date and time when the namespace was created.
         
        .google.protobuf.Timestamp created_time = 10;
        Specified by:
        hasCreatedTime in interface NamespaceOrBuilder
        Returns:
        Whether the createdTime field is set.
      • getCreatedTime

        public com.google.protobuf.Timestamp getCreatedTime()
         The date and time when the namespace was created.
         
        .google.protobuf.Timestamp created_time = 10;
        Specified by:
        getCreatedTime in interface NamespaceOrBuilder
        Returns:
        The createdTime.
      • getCreatedTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreatedTimeOrBuilder()
         The date and time when the namespace was created.
         
        .google.protobuf.Timestamp created_time = 10;
        Specified by:
        getCreatedTimeOrBuilder in interface NamespaceOrBuilder
      • hasLastModifiedTime

        public boolean hasLastModifiedTime()
         The date and time when the namespace was last modified.
         Will not be set if the namespace has never been modified.
         
        .google.protobuf.Timestamp last_modified_time = 11;
        Specified by:
        hasLastModifiedTime in interface NamespaceOrBuilder
        Returns:
        Whether the lastModifiedTime field is set.
      • getLastModifiedTime

        public com.google.protobuf.Timestamp getLastModifiedTime()
         The date and time when the namespace was last modified.
         Will not be set if the namespace has never been modified.
         
        .google.protobuf.Timestamp last_modified_time = 11;
        Specified by:
        getLastModifiedTime in interface NamespaceOrBuilder
        Returns:
        The lastModifiedTime.
      • getLastModifiedTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getLastModifiedTimeOrBuilder()
         The date and time when the namespace was last modified.
         Will not be set if the namespace has never been modified.
         
        .google.protobuf.Timestamp last_modified_time = 11;
        Specified by:
        getLastModifiedTimeOrBuilder in interface NamespaceOrBuilder
      • getRegionStatusCount

        public int getRegionStatusCount()
        Description copied from interface: NamespaceOrBuilder
         The status of each region where the namespace is available.
         The id of the region is the key and the status is the value of the map.
         
        map<string, .temporal.api.cloud.namespace.v1.NamespaceRegionStatus> region_status = 12;
        Specified by:
        getRegionStatusCount in interface NamespaceOrBuilder
      • containsRegionStatus

        public boolean containsRegionStatus​(java.lang.String key)
         The status of each region where the namespace is available.
         The id of the region is the key and the status is the value of the map.
         
        map<string, .temporal.api.cloud.namespace.v1.NamespaceRegionStatus> region_status = 12;
        Specified by:
        containsRegionStatus in interface NamespaceOrBuilder
      • getRegionStatusMap

        public java.util.Map<java.lang.String,​NamespaceRegionStatus> getRegionStatusMap()
         The status of each region where the namespace is available.
         The id of the region is the key and the status is the value of the map.
         
        map<string, .temporal.api.cloud.namespace.v1.NamespaceRegionStatus> region_status = 12;
        Specified by:
        getRegionStatusMap in interface NamespaceOrBuilder
      • getRegionStatusOrDefault

        public NamespaceRegionStatus getRegionStatusOrDefault​(java.lang.String key,
                                                              NamespaceRegionStatus defaultValue)
         The status of each region where the namespace is available.
         The id of the region is the key and the status is the value of the map.
         
        map<string, .temporal.api.cloud.namespace.v1.NamespaceRegionStatus> region_status = 12;
        Specified by:
        getRegionStatusOrDefault in interface NamespaceOrBuilder
      • getRegionStatusOrThrow

        public NamespaceRegionStatus getRegionStatusOrThrow​(java.lang.String key)
         The status of each region where the namespace is available.
         The id of the region is the key and the status is the value of the map.
         
        map<string, .temporal.api.cloud.namespace.v1.NamespaceRegionStatus> region_status = 12;
        Specified by:
        getRegionStatusOrThrow in interface NamespaceOrBuilder
      • getConnectivityRulesList

        public java.util.List<ConnectivityRule> getConnectivityRulesList()
         The connectivity rules that are set on this namespace.
         
        repeated .temporal.api.cloud.connectivityrule.v1.ConnectivityRule connectivity_rules = 14;
        Specified by:
        getConnectivityRulesList in interface NamespaceOrBuilder
      • getConnectivityRulesCount

        public int getConnectivityRulesCount()
         The connectivity rules that are set on this namespace.
         
        repeated .temporal.api.cloud.connectivityrule.v1.ConnectivityRule connectivity_rules = 14;
        Specified by:
        getConnectivityRulesCount in interface NamespaceOrBuilder
      • getConnectivityRules

        public ConnectivityRule getConnectivityRules​(int index)
         The connectivity rules that are set on this namespace.
         
        repeated .temporal.api.cloud.connectivityrule.v1.ConnectivityRule connectivity_rules = 14;
        Specified by:
        getConnectivityRules in interface NamespaceOrBuilder
      • containsTags

        public boolean containsTags​(java.lang.String key)
         The tags for the namespace.
         
        map<string, string> tags = 15;
        Specified by:
        containsTags in interface NamespaceOrBuilder
      • getTags

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.String> getTags()
        Deprecated.
        Use getTagsMap() instead.
        Specified by:
        getTags in interface NamespaceOrBuilder
      • getTagsMap

        public java.util.Map<java.lang.String,​java.lang.String> getTagsMap()
         The tags for the namespace.
         
        map<string, string> tags = 15;
        Specified by:
        getTagsMap in interface NamespaceOrBuilder
      • getTagsOrDefault

        public java.lang.String getTagsOrDefault​(java.lang.String key,
                                                 java.lang.String defaultValue)
         The tags for the namespace.
         
        map<string, string> tags = 15;
        Specified by:
        getTagsOrDefault in interface NamespaceOrBuilder
      • getTagsOrThrow

        public java.lang.String getTagsOrThrow​(java.lang.String key)
         The tags for the namespace.
         
        map<string, string> tags = 15;
        Specified by:
        getTagsOrThrow in interface NamespaceOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Namespace parseFrom​(java.nio.ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Namespace parseFrom​(java.nio.ByteBuffer data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Namespace parseFrom​(com.google.protobuf.ByteString data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Namespace parseFrom​(com.google.protobuf.ByteString data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Namespace parseFrom​(byte[] data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Namespace parseFrom​(byte[] data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Namespace parseFrom​(java.io.InputStream input)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Namespace parseFrom​(java.io.InputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Namespace parseDelimitedFrom​(java.io.InputStream input)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static Namespace parseDelimitedFrom​(java.io.InputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Namespace parseFrom​(com.google.protobuf.CodedInputStream input)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static Namespace parseFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public Namespace.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public Namespace.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected Namespace.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static Namespace getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Namespace> parser()
      • getParserForType

        public com.google.protobuf.Parser<Namespace> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public Namespace getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder