Class MtlsAuthSpec.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, MtlsAuthSpecOrBuilder, java.lang.Cloneable
    Enclosing class:
    MtlsAuthSpec

    public static final class MtlsAuthSpec.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MtlsAuthSpec.Builder>
    implements MtlsAuthSpecOrBuilder
    Protobuf type temporal.api.cloud.namespace.v1.MtlsAuthSpec
    • 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<MtlsAuthSpec.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.String getAcceptedClientCaDeprecated()
         The base64 encoded ca cert(s) in PEM format that the clients can use for authentication and authorization.
         This must only be one value, but the CA can have a chain.
        
         (-- api-linter: core::0140::base64=disabled --)
         Deprecated: Not supported after 2024-05-13-00 api version. Use accepted_client_ca instead.
         temporal:versioning:max_version=2024-05-13-00
         
        string accepted_client_ca_deprecated = 1;
        Specified by:
        getAcceptedClientCaDeprecated in interface MtlsAuthSpecOrBuilder
        Returns:
        The acceptedClientCaDeprecated.
      • getAcceptedClientCaDeprecatedBytes

        public com.google.protobuf.ByteString getAcceptedClientCaDeprecatedBytes()
         The base64 encoded ca cert(s) in PEM format that the clients can use for authentication and authorization.
         This must only be one value, but the CA can have a chain.
        
         (-- api-linter: core::0140::base64=disabled --)
         Deprecated: Not supported after 2024-05-13-00 api version. Use accepted_client_ca instead.
         temporal:versioning:max_version=2024-05-13-00
         
        string accepted_client_ca_deprecated = 1;
        Specified by:
        getAcceptedClientCaDeprecatedBytes in interface MtlsAuthSpecOrBuilder
        Returns:
        The bytes for acceptedClientCaDeprecated.
      • setAcceptedClientCaDeprecated

        public MtlsAuthSpec.Builder setAcceptedClientCaDeprecated​(java.lang.String value)
         The base64 encoded ca cert(s) in PEM format that the clients can use for authentication and authorization.
         This must only be one value, but the CA can have a chain.
        
         (-- api-linter: core::0140::base64=disabled --)
         Deprecated: Not supported after 2024-05-13-00 api version. Use accepted_client_ca instead.
         temporal:versioning:max_version=2024-05-13-00
         
        string accepted_client_ca_deprecated = 1;
        Parameters:
        value - The acceptedClientCaDeprecated to set.
        Returns:
        This builder for chaining.
      • clearAcceptedClientCaDeprecated

        public MtlsAuthSpec.Builder clearAcceptedClientCaDeprecated()
         The base64 encoded ca cert(s) in PEM format that the clients can use for authentication and authorization.
         This must only be one value, but the CA can have a chain.
        
         (-- api-linter: core::0140::base64=disabled --)
         Deprecated: Not supported after 2024-05-13-00 api version. Use accepted_client_ca instead.
         temporal:versioning:max_version=2024-05-13-00
         
        string accepted_client_ca_deprecated = 1;
        Returns:
        This builder for chaining.
      • setAcceptedClientCaDeprecatedBytes

        public MtlsAuthSpec.Builder setAcceptedClientCaDeprecatedBytes​(com.google.protobuf.ByteString value)
         The base64 encoded ca cert(s) in PEM format that the clients can use for authentication and authorization.
         This must only be one value, but the CA can have a chain.
        
         (-- api-linter: core::0140::base64=disabled --)
         Deprecated: Not supported after 2024-05-13-00 api version. Use accepted_client_ca instead.
         temporal:versioning:max_version=2024-05-13-00
         
        string accepted_client_ca_deprecated = 1;
        Parameters:
        value - The bytes for acceptedClientCaDeprecated to set.
        Returns:
        This builder for chaining.
      • getAcceptedClientCa

        public com.google.protobuf.ByteString getAcceptedClientCa()
         The ca cert(s) in PEM format that the clients can use for authentication and authorization.
         This must only be one value, but the CA can have a chain.
         temporal:versioning:min_version=2024-05-13-00
         
        bytes accepted_client_ca = 4;
        Specified by:
        getAcceptedClientCa in interface MtlsAuthSpecOrBuilder
        Returns:
        The acceptedClientCa.
      • setAcceptedClientCa

        public MtlsAuthSpec.Builder setAcceptedClientCa​(com.google.protobuf.ByteString value)
         The ca cert(s) in PEM format that the clients can use for authentication and authorization.
         This must only be one value, but the CA can have a chain.
         temporal:versioning:min_version=2024-05-13-00
         
        bytes accepted_client_ca = 4;
        Parameters:
        value - The acceptedClientCa to set.
        Returns:
        This builder for chaining.
      • clearAcceptedClientCa

        public MtlsAuthSpec.Builder clearAcceptedClientCa()
         The ca cert(s) in PEM format that the clients can use for authentication and authorization.
         This must only be one value, but the CA can have a chain.
         temporal:versioning:min_version=2024-05-13-00
         
        bytes accepted_client_ca = 4;
        Returns:
        This builder for chaining.
      • getCertificateFiltersList

        public java.util.List<CertificateFilterSpec> getCertificateFiltersList()
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
        Specified by:
        getCertificateFiltersList in interface MtlsAuthSpecOrBuilder
      • getCertificateFiltersCount

        public int getCertificateFiltersCount()
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
        Specified by:
        getCertificateFiltersCount in interface MtlsAuthSpecOrBuilder
      • getCertificateFilters

        public CertificateFilterSpec getCertificateFilters​(int index)
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
        Specified by:
        getCertificateFilters in interface MtlsAuthSpecOrBuilder
      • setCertificateFilters

        public MtlsAuthSpec.Builder setCertificateFilters​(int index,
                                                          CertificateFilterSpec value)
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • setCertificateFilters

        public MtlsAuthSpec.Builder setCertificateFilters​(int index,
                                                          CertificateFilterSpec.Builder builderForValue)
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • addCertificateFilters

        public MtlsAuthSpec.Builder addCertificateFilters​(CertificateFilterSpec value)
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • addCertificateFilters

        public MtlsAuthSpec.Builder addCertificateFilters​(int index,
                                                          CertificateFilterSpec value)
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • addCertificateFilters

        public MtlsAuthSpec.Builder addCertificateFilters​(CertificateFilterSpec.Builder builderForValue)
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • addCertificateFilters

        public MtlsAuthSpec.Builder addCertificateFilters​(int index,
                                                          CertificateFilterSpec.Builder builderForValue)
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • addAllCertificateFilters

        public MtlsAuthSpec.Builder addAllCertificateFilters​(java.lang.Iterable<? extends CertificateFilterSpec> values)
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • clearCertificateFilters

        public MtlsAuthSpec.Builder clearCertificateFilters()
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • removeCertificateFilters

        public MtlsAuthSpec.Builder removeCertificateFilters​(int index)
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • getCertificateFiltersBuilder

        public CertificateFilterSpec.Builder getCertificateFiltersBuilder​(int index)
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • getCertificateFiltersOrBuilder

        public CertificateFilterSpecOrBuilder getCertificateFiltersOrBuilder​(int index)
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
        Specified by:
        getCertificateFiltersOrBuilder in interface MtlsAuthSpecOrBuilder
      • getCertificateFiltersOrBuilderList

        public java.util.List<? extends CertificateFilterSpecOrBuilder> getCertificateFiltersOrBuilderList()
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
        Specified by:
        getCertificateFiltersOrBuilderList in interface MtlsAuthSpecOrBuilder
      • addCertificateFiltersBuilder

        public CertificateFilterSpec.Builder addCertificateFiltersBuilder()
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • addCertificateFiltersBuilder

        public CertificateFilterSpec.Builder addCertificateFiltersBuilder​(int index)
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • getCertificateFiltersBuilderList

        public java.util.List<CertificateFilterSpec.Builder> getCertificateFiltersBuilderList()
         Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters.
         This allows limiting access to specific end-entity certificates.
         Optional, default is empty.
         
        repeated .temporal.api.cloud.namespace.v1.CertificateFilterSpec certificate_filters = 2;
      • getEnabled

        public boolean getEnabled()
         Flag to enable mTLS auth (default: disabled).
         Note: disabling mTLS auth will cause existing mTLS connections to fail.
         temporal:versioning:min_version=2024-05-13-00
         
        bool enabled = 3;
        Specified by:
        getEnabled in interface MtlsAuthSpecOrBuilder
        Returns:
        The enabled.
      • setEnabled

        public MtlsAuthSpec.Builder setEnabled​(boolean value)
         Flag to enable mTLS auth (default: disabled).
         Note: disabling mTLS auth will cause existing mTLS connections to fail.
         temporal:versioning:min_version=2024-05-13-00
         
        bool enabled = 3;
        Parameters:
        value - The enabled to set.
        Returns:
        This builder for chaining.
      • clearEnabled

        public MtlsAuthSpec.Builder clearEnabled()
         Flag to enable mTLS auth (default: disabled).
         Note: disabling mTLS auth will cause existing mTLS connections to fail.
         temporal:versioning:min_version=2024-05-13-00
         
        bool enabled = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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