Class KeyUsage.ExtendedKeyUsageOptions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<KeyUsage.ExtendedKeyUsageOptions.Builder>
com.google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions.Builder
All Implemented Interfaces:
KeyUsage.ExtendedKeyUsageOptionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
KeyUsage.ExtendedKeyUsageOptions

public static final class KeyUsage.ExtendedKeyUsageOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<KeyUsage.ExtendedKeyUsageOptions.Builder> implements KeyUsage.ExtendedKeyUsageOptionsOrBuilder
 [KeyUsage.ExtendedKeyUsageOptions][google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions]
 has fields that correspond to certain common OIDs that could be specified
 as an extended key usage value.
 
Protobuf type google.cloud.security.privateca.v1.KeyUsage.ExtendedKeyUsageOptions
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<KeyUsage.ExtendedKeyUsageOptions.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<KeyUsage.ExtendedKeyUsageOptions.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<KeyUsage.ExtendedKeyUsageOptions.Builder>
    • getDefaultInstanceForType

      public KeyUsage.ExtendedKeyUsageOptions 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 KeyUsage.ExtendedKeyUsageOptions buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

    • isInitialized

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

      public KeyUsage.ExtendedKeyUsageOptions.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<KeyUsage.ExtendedKeyUsageOptions.Builder>
      Throws:
      IOException
    • getServerAuth

      public boolean getServerAuth()
       Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
       server authentication", though regularly used for non-WWW TLS.
       
      bool server_auth = 1;
      Specified by:
      getServerAuth in interface KeyUsage.ExtendedKeyUsageOptionsOrBuilder
      Returns:
      The serverAuth.
    • setServerAuth

      public KeyUsage.ExtendedKeyUsageOptions.Builder setServerAuth(boolean value)
       Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
       server authentication", though regularly used for non-WWW TLS.
       
      bool server_auth = 1;
      Parameters:
      value - The serverAuth to set.
      Returns:
      This builder for chaining.
    • clearServerAuth

      public KeyUsage.ExtendedKeyUsageOptions.Builder clearServerAuth()
       Corresponds to OID 1.3.6.1.5.5.7.3.1. Officially described as "TLS WWW
       server authentication", though regularly used for non-WWW TLS.
       
      bool server_auth = 1;
      Returns:
      This builder for chaining.
    • getClientAuth

      public boolean getClientAuth()
       Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
       client authentication", though regularly used for non-WWW TLS.
       
      bool client_auth = 2;
      Specified by:
      getClientAuth in interface KeyUsage.ExtendedKeyUsageOptionsOrBuilder
      Returns:
      The clientAuth.
    • setClientAuth

      public KeyUsage.ExtendedKeyUsageOptions.Builder setClientAuth(boolean value)
       Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
       client authentication", though regularly used for non-WWW TLS.
       
      bool client_auth = 2;
      Parameters:
      value - The clientAuth to set.
      Returns:
      This builder for chaining.
    • clearClientAuth

      public KeyUsage.ExtendedKeyUsageOptions.Builder clearClientAuth()
       Corresponds to OID 1.3.6.1.5.5.7.3.2. Officially described as "TLS WWW
       client authentication", though regularly used for non-WWW TLS.
       
      bool client_auth = 2;
      Returns:
      This builder for chaining.
    • getCodeSigning

      public boolean getCodeSigning()
       Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
       downloadable executable code client authentication".
       
      bool code_signing = 3;
      Specified by:
      getCodeSigning in interface KeyUsage.ExtendedKeyUsageOptionsOrBuilder
      Returns:
      The codeSigning.
    • setCodeSigning

      public KeyUsage.ExtendedKeyUsageOptions.Builder setCodeSigning(boolean value)
       Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
       downloadable executable code client authentication".
       
      bool code_signing = 3;
      Parameters:
      value - The codeSigning to set.
      Returns:
      This builder for chaining.
    • clearCodeSigning

      public KeyUsage.ExtendedKeyUsageOptions.Builder clearCodeSigning()
       Corresponds to OID 1.3.6.1.5.5.7.3.3. Officially described as "Signing of
       downloadable executable code client authentication".
       
      bool code_signing = 3;
      Returns:
      This builder for chaining.
    • getEmailProtection

      public boolean getEmailProtection()
       Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
       protection".
       
      bool email_protection = 4;
      Specified by:
      getEmailProtection in interface KeyUsage.ExtendedKeyUsageOptionsOrBuilder
      Returns:
      The emailProtection.
    • setEmailProtection

      public KeyUsage.ExtendedKeyUsageOptions.Builder setEmailProtection(boolean value)
       Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
       protection".
       
      bool email_protection = 4;
      Parameters:
      value - The emailProtection to set.
      Returns:
      This builder for chaining.
    • clearEmailProtection

      public KeyUsage.ExtendedKeyUsageOptions.Builder clearEmailProtection()
       Corresponds to OID 1.3.6.1.5.5.7.3.4. Officially described as "Email
       protection".
       
      bool email_protection = 4;
      Returns:
      This builder for chaining.
    • getTimeStamping

      public boolean getTimeStamping()
       Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
       the hash of an object to a time".
       
      bool time_stamping = 5;
      Specified by:
      getTimeStamping in interface KeyUsage.ExtendedKeyUsageOptionsOrBuilder
      Returns:
      The timeStamping.
    • setTimeStamping

      public KeyUsage.ExtendedKeyUsageOptions.Builder setTimeStamping(boolean value)
       Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
       the hash of an object to a time".
       
      bool time_stamping = 5;
      Parameters:
      value - The timeStamping to set.
      Returns:
      This builder for chaining.
    • clearTimeStamping

      public KeyUsage.ExtendedKeyUsageOptions.Builder clearTimeStamping()
       Corresponds to OID 1.3.6.1.5.5.7.3.8. Officially described as "Binding
       the hash of an object to a time".
       
      bool time_stamping = 5;
      Returns:
      This builder for chaining.
    • getOcspSigning

      public boolean getOcspSigning()
       Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
       OCSP responses".
       
      bool ocsp_signing = 6;
      Specified by:
      getOcspSigning in interface KeyUsage.ExtendedKeyUsageOptionsOrBuilder
      Returns:
      The ocspSigning.
    • setOcspSigning

      public KeyUsage.ExtendedKeyUsageOptions.Builder setOcspSigning(boolean value)
       Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
       OCSP responses".
       
      bool ocsp_signing = 6;
      Parameters:
      value - The ocspSigning to set.
      Returns:
      This builder for chaining.
    • clearOcspSigning

      public KeyUsage.ExtendedKeyUsageOptions.Builder clearOcspSigning()
       Corresponds to OID 1.3.6.1.5.5.7.3.9. Officially described as "Signing
       OCSP responses".
       
      bool ocsp_signing = 6;
      Returns:
      This builder for chaining.