Class TlsResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<TlsResult.Builder>
com.google.protobuf.GeneratedMessage.Builder<TlsResult.Builder>
io.confluent.cloud.protobuf.traffic.networkcontext.v1.TlsResult.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TlsResultOrBuilder, Cloneable
Enclosing class:
TlsResult

public static final class TlsResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<TlsResult.Builder> implements TlsResultOrBuilder
 Encapsulates all state related to Tls handshake from client to envoy
 
Protobuf type traffic.networkcontext.v1.TlsResult
  • Method Details

    • getDescriptor

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

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

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

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

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

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

      public TlsResult.Builder mergeFrom(TlsResult other)
    • isInitialized

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

      public TlsResult.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<TlsResult.Builder>
      Throws:
      IOException
    • getTlsVersion

      public String getTlsVersion()
      string tls_version = 1;
      Specified by:
      getTlsVersion in interface TlsResultOrBuilder
      Returns:
      The tlsVersion.
    • getTlsVersionBytes

      public com.google.protobuf.ByteString getTlsVersionBytes()
      string tls_version = 1;
      Specified by:
      getTlsVersionBytes in interface TlsResultOrBuilder
      Returns:
      The bytes for tlsVersion.
    • setTlsVersion

      public TlsResult.Builder setTlsVersion(String value)
      string tls_version = 1;
      Parameters:
      value - The tlsVersion to set.
      Returns:
      This builder for chaining.
    • clearTlsVersion

      public TlsResult.Builder clearTlsVersion()
      string tls_version = 1;
      Returns:
      This builder for chaining.
    • setTlsVersionBytes

      public TlsResult.Builder setTlsVersionBytes(com.google.protobuf.ByteString value)
      string tls_version = 1;
      Parameters:
      value - The bytes for tlsVersion to set.
      Returns:
      This builder for chaining.
    • getCipherSuite

      public String getCipherSuite()
      string cipher_suite = 2;
      Specified by:
      getCipherSuite in interface TlsResultOrBuilder
      Returns:
      The cipherSuite.
    • getCipherSuiteBytes

      public com.google.protobuf.ByteString getCipherSuiteBytes()
      string cipher_suite = 2;
      Specified by:
      getCipherSuiteBytes in interface TlsResultOrBuilder
      Returns:
      The bytes for cipherSuite.
    • setCipherSuite

      public TlsResult.Builder setCipherSuite(String value)
      string cipher_suite = 2;
      Parameters:
      value - The cipherSuite to set.
      Returns:
      This builder for chaining.
    • clearCipherSuite

      public TlsResult.Builder clearCipherSuite()
      string cipher_suite = 2;
      Returns:
      This builder for chaining.
    • setCipherSuiteBytes

      public TlsResult.Builder setCipherSuiteBytes(com.google.protobuf.ByteString value)
      string cipher_suite = 2;
      Parameters:
      value - The bytes for cipherSuite to set.
      Returns:
      This builder for chaining.
    • getClientcertIsValidated

      public boolean getClientcertIsValidated()
      bool clientcert_is_validated = 3;
      Specified by:
      getClientcertIsValidated in interface TlsResultOrBuilder
      Returns:
      The clientcertIsValidated.
    • setClientcertIsValidated

      public TlsResult.Builder setClientcertIsValidated(boolean value)
      bool clientcert_is_validated = 3;
      Parameters:
      value - The clientcertIsValidated to set.
      Returns:
      This builder for chaining.
    • clearClientcertIsValidated

      public TlsResult.Builder clearClientcertIsValidated()
      bool clientcert_is_validated = 3;
      Returns:
      This builder for chaining.
    • getClientcertValidationResult

      public String getClientcertValidationResult()
       Human readable field of clientcert_is_validated
       
      string clientcert_validation_result = 4;
      Specified by:
      getClientcertValidationResult in interface TlsResultOrBuilder
      Returns:
      The clientcertValidationResult.
    • getClientcertValidationResultBytes

      public com.google.protobuf.ByteString getClientcertValidationResultBytes()
       Human readable field of clientcert_is_validated
       
      string clientcert_validation_result = 4;
      Specified by:
      getClientcertValidationResultBytes in interface TlsResultOrBuilder
      Returns:
      The bytes for clientcertValidationResult.
    • setClientcertValidationResult

      public TlsResult.Builder setClientcertValidationResult(String value)
       Human readable field of clientcert_is_validated
       
      string clientcert_validation_result = 4;
      Parameters:
      value - The clientcertValidationResult to set.
      Returns:
      This builder for chaining.
    • clearClientcertValidationResult

      public TlsResult.Builder clearClientcertValidationResult()
       Human readable field of clientcert_is_validated
       
      string clientcert_validation_result = 4;
      Returns:
      This builder for chaining.
    • setClientcertValidationResultBytes

      public TlsResult.Builder setClientcertValidationResultBytes(com.google.protobuf.ByteString value)
       Human readable field of clientcert_is_validated
       
      string clientcert_validation_result = 4;
      Parameters:
      value - The bytes for clientcertValidationResult to set.
      Returns:
      This builder for chaining.
    • getClientcertLeaf

      public com.google.protobuf.ByteString getClientcertLeaf()
       full leaf cert. Raw bytes are encoded in PEM.
       
      bytes clientcert_leaf = 5;
      Specified by:
      getClientcertLeaf in interface TlsResultOrBuilder
      Returns:
      The clientcertLeaf.
    • setClientcertLeaf

      public TlsResult.Builder setClientcertLeaf(com.google.protobuf.ByteString value)
       full leaf cert. Raw bytes are encoded in PEM.
       
      bytes clientcert_leaf = 5;
      Parameters:
      value - The clientcertLeaf to set.
      Returns:
      This builder for chaining.
    • clearClientcertLeaf

      public TlsResult.Builder clearClientcertLeaf()
       full leaf cert. Raw bytes are encoded in PEM.
       
      bytes clientcert_leaf = 5;
      Returns:
      This builder for chaining.
    • getClientcertChainList

      public List<CertMetadata> getClientcertChainList()
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
      Specified by:
      getClientcertChainList in interface TlsResultOrBuilder
    • getClientcertChainCount

      public int getClientcertChainCount()
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
      Specified by:
      getClientcertChainCount in interface TlsResultOrBuilder
    • getClientcertChain

      public CertMetadata getClientcertChain(int index)
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
      Specified by:
      getClientcertChain in interface TlsResultOrBuilder
    • setClientcertChain

      public TlsResult.Builder setClientcertChain(int index, CertMetadata value)
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • setClientcertChain

      public TlsResult.Builder setClientcertChain(int index, CertMetadata.Builder builderForValue)
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • addClientcertChain

      public TlsResult.Builder addClientcertChain(CertMetadata value)
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • addClientcertChain

      public TlsResult.Builder addClientcertChain(int index, CertMetadata value)
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • addClientcertChain

      public TlsResult.Builder addClientcertChain(CertMetadata.Builder builderForValue)
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • addClientcertChain

      public TlsResult.Builder addClientcertChain(int index, CertMetadata.Builder builderForValue)
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • addAllClientcertChain

      public TlsResult.Builder addAllClientcertChain(Iterable<? extends CertMetadata> values)
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • clearClientcertChain

      public TlsResult.Builder clearClientcertChain()
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • removeClientcertChain

      public TlsResult.Builder removeClientcertChain(int index)
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • getClientcertChainBuilder

      public CertMetadata.Builder getClientcertChainBuilder(int index)
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • getClientcertChainOrBuilder

      public CertMetadataOrBuilder getClientcertChainOrBuilder(int index)
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
      Specified by:
      getClientcertChainOrBuilder in interface TlsResultOrBuilder
    • getClientcertChainOrBuilderList

      public List<? extends CertMetadataOrBuilder> getClientcertChainOrBuilderList()
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
      Specified by:
      getClientcertChainOrBuilderList in interface TlsResultOrBuilder
    • addClientcertChainBuilder

      public CertMetadata.Builder addClientcertChainBuilder()
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • addClientcertChainBuilder

      public CertMetadata.Builder addClientcertChainBuilder(int index)
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • getClientcertChainBuilderList

      public List<CertMetadata.Builder> getClientcertChainBuilderList()
       metadata for each cert in the chain (including leaf)
       
      repeated .traffic.networkcontext.v1.CertMetadata clientcert_chain = 6;
    • getTrustedcaProviderId

      public String getTrustedcaProviderId()
       Identifier for the Trusted CA provider that validated the client
       certificate. This is an opaque string, unique to each provider, used for
       auditing and cross-referencing.
       
      string trustedca_provider_id = 7;
      Specified by:
      getTrustedcaProviderId in interface TlsResultOrBuilder
      Returns:
      The trustedcaProviderId.
    • getTrustedcaProviderIdBytes

      public com.google.protobuf.ByteString getTrustedcaProviderIdBytes()
       Identifier for the Trusted CA provider that validated the client
       certificate. This is an opaque string, unique to each provider, used for
       auditing and cross-referencing.
       
      string trustedca_provider_id = 7;
      Specified by:
      getTrustedcaProviderIdBytes in interface TlsResultOrBuilder
      Returns:
      The bytes for trustedcaProviderId.
    • setTrustedcaProviderId

      public TlsResult.Builder setTrustedcaProviderId(String value)
       Identifier for the Trusted CA provider that validated the client
       certificate. This is an opaque string, unique to each provider, used for
       auditing and cross-referencing.
       
      string trustedca_provider_id = 7;
      Parameters:
      value - The trustedcaProviderId to set.
      Returns:
      This builder for chaining.
    • clearTrustedcaProviderId

      public TlsResult.Builder clearTrustedcaProviderId()
       Identifier for the Trusted CA provider that validated the client
       certificate. This is an opaque string, unique to each provider, used for
       auditing and cross-referencing.
       
      string trustedca_provider_id = 7;
      Returns:
      This builder for chaining.
    • setTrustedcaProviderIdBytes

      public TlsResult.Builder setTrustedcaProviderIdBytes(com.google.protobuf.ByteString value)
       Identifier for the Trusted CA provider that validated the client
       certificate. This is an opaque string, unique to each provider, used for
       auditing and cross-referencing.
       
      string trustedca_provider_id = 7;
      Parameters:
      value - The bytes for trustedcaProviderId to set.
      Returns:
      This builder for chaining.
    • getTrustedcaOrgResourceId

      public String getTrustedcaOrgResourceId()
       Resource ID of the organization as recognized by the Trusted CA provider.
       This is an opaque string, unique within the provider, used for mapping to
       organizational records.
       
      string trustedca_org_resource_id = 8;
      Specified by:
      getTrustedcaOrgResourceId in interface TlsResultOrBuilder
      Returns:
      The trustedcaOrgResourceId.
    • getTrustedcaOrgResourceIdBytes

      public com.google.protobuf.ByteString getTrustedcaOrgResourceIdBytes()
       Resource ID of the organization as recognized by the Trusted CA provider.
       This is an opaque string, unique within the provider, used for mapping to
       organizational records.
       
      string trustedca_org_resource_id = 8;
      Specified by:
      getTrustedcaOrgResourceIdBytes in interface TlsResultOrBuilder
      Returns:
      The bytes for trustedcaOrgResourceId.
    • setTrustedcaOrgResourceId

      public TlsResult.Builder setTrustedcaOrgResourceId(String value)
       Resource ID of the organization as recognized by the Trusted CA provider.
       This is an opaque string, unique within the provider, used for mapping to
       organizational records.
       
      string trustedca_org_resource_id = 8;
      Parameters:
      value - The trustedcaOrgResourceId to set.
      Returns:
      This builder for chaining.
    • clearTrustedcaOrgResourceId

      public TlsResult.Builder clearTrustedcaOrgResourceId()
       Resource ID of the organization as recognized by the Trusted CA provider.
       This is an opaque string, unique within the provider, used for mapping to
       organizational records.
       
      string trustedca_org_resource_id = 8;
      Returns:
      This builder for chaining.
    • setTrustedcaOrgResourceIdBytes

      public TlsResult.Builder setTrustedcaOrgResourceIdBytes(com.google.protobuf.ByteString value)
       Resource ID of the organization as recognized by the Trusted CA provider.
       This is an opaque string, unique within the provider, used for mapping to
       organizational records.
       
      string trustedca_org_resource_id = 8;
      Parameters:
      value - The bytes for trustedcaOrgResourceId to set.
      Returns:
      This builder for chaining.