Class CaPool.PublishingOptions.Builder

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

public static final class CaPool.PublishingOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<CaPool.PublishingOptions.Builder> implements CaPool.PublishingOptionsOrBuilder
 Options relating to the publication of each
 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s
 CA certificate and CRLs and their inclusion as extensions in issued
 [Certificates][google.cloud.security.privateca.v1.Certificate]. The options
 set here apply to certificates issued by any
 [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
 in the [CaPool][google.cloud.security.privateca.v1.CaPool].
 
Protobuf type google.cloud.security.privateca.v1.CaPool.PublishingOptions
  • 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<CaPool.PublishingOptions.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<CaPool.PublishingOptions.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<CaPool.PublishingOptions.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CaPool.PublishingOptions.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<CaPool.PublishingOptions.Builder>
      Throws:
      IOException
    • getPublishCaCert

      public boolean getPublishCaCert()
       Optional. When true, publishes each
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s
       CA certificate and includes its URL in the "Authority Information Access"
       X.509 extension in all issued
       [Certificates][google.cloud.security.privateca.v1.Certificate]. If this
       is false, the CA certificate will not be published and the corresponding
       X.509 extension will not be written in issued certificates.
       
      bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublishCaCert in interface CaPool.PublishingOptionsOrBuilder
      Returns:
      The publishCaCert.
    • setPublishCaCert

      public CaPool.PublishingOptions.Builder setPublishCaCert(boolean value)
       Optional. When true, publishes each
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s
       CA certificate and includes its URL in the "Authority Information Access"
       X.509 extension in all issued
       [Certificates][google.cloud.security.privateca.v1.Certificate]. If this
       is false, the CA certificate will not be published and the corresponding
       X.509 extension will not be written in issued certificates.
       
      bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The publishCaCert to set.
      Returns:
      This builder for chaining.
    • clearPublishCaCert

      public CaPool.PublishingOptions.Builder clearPublishCaCert()
       Optional. When true, publishes each
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s
       CA certificate and includes its URL in the "Authority Information Access"
       X.509 extension in all issued
       [Certificates][google.cloud.security.privateca.v1.Certificate]. If this
       is false, the CA certificate will not be published and the corresponding
       X.509 extension will not be written in issued certificates.
       
      bool publish_ca_cert = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getPublishCrl

      public boolean getPublishCrl()
       Optional. When true, publishes each
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s
       CRL and includes its URL in the "CRL Distribution Points" X.509 extension
       in all issued
       [Certificates][google.cloud.security.privateca.v1.Certificate]. If this
       is false, CRLs will not be published and the corresponding X.509
       extension will not be written in issued certificates. CRLs will expire 7
       days from their creation. However, we will rebuild daily. CRLs are also
       rebuilt shortly after a certificate is revoked.
       
      bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPublishCrl in interface CaPool.PublishingOptionsOrBuilder
      Returns:
      The publishCrl.
    • setPublishCrl

      public CaPool.PublishingOptions.Builder setPublishCrl(boolean value)
       Optional. When true, publishes each
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s
       CRL and includes its URL in the "CRL Distribution Points" X.509 extension
       in all issued
       [Certificates][google.cloud.security.privateca.v1.Certificate]. If this
       is false, CRLs will not be published and the corresponding X.509
       extension will not be written in issued certificates. CRLs will expire 7
       days from their creation. However, we will rebuild daily. CRLs are also
       rebuilt shortly after a certificate is revoked.
       
      bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The publishCrl to set.
      Returns:
      This builder for chaining.
    • clearPublishCrl

      public CaPool.PublishingOptions.Builder clearPublishCrl()
       Optional. When true, publishes each
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]'s
       CRL and includes its URL in the "CRL Distribution Points" X.509 extension
       in all issued
       [Certificates][google.cloud.security.privateca.v1.Certificate]. If this
       is false, CRLs will not be published and the corresponding X.509
       extension will not be written in issued certificates. CRLs will expire 7
       days from their creation. However, we will rebuild daily. CRLs are also
       rebuilt shortly after a certificate is revoked.
       
      bool publish_crl = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getEncodingFormatValue

      public int getEncodingFormatValue()
       Optional. Specifies the encoding format of each
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
       resource's CA certificate and CRLs. If this is omitted, CA certificates
       and CRLs will be published in PEM.
       
      .google.cloud.security.privateca.v1.CaPool.PublishingOptions.EncodingFormat encoding_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncodingFormatValue in interface CaPool.PublishingOptionsOrBuilder
      Returns:
      The enum numeric value on the wire for encodingFormat.
    • setEncodingFormatValue

      public CaPool.PublishingOptions.Builder setEncodingFormatValue(int value)
       Optional. Specifies the encoding format of each
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
       resource's CA certificate and CRLs. If this is omitted, CA certificates
       and CRLs will be published in PEM.
       
      .google.cloud.security.privateca.v1.CaPool.PublishingOptions.EncodingFormat encoding_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for encodingFormat to set.
      Returns:
      This builder for chaining.
    • getEncodingFormat

      public CaPool.PublishingOptions.EncodingFormat getEncodingFormat()
       Optional. Specifies the encoding format of each
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
       resource's CA certificate and CRLs. If this is omitted, CA certificates
       and CRLs will be published in PEM.
       
      .google.cloud.security.privateca.v1.CaPool.PublishingOptions.EncodingFormat encoding_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEncodingFormat in interface CaPool.PublishingOptionsOrBuilder
      Returns:
      The encodingFormat.
    • setEncodingFormat

       Optional. Specifies the encoding format of each
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
       resource's CA certificate and CRLs. If this is omitted, CA certificates
       and CRLs will be published in PEM.
       
      .google.cloud.security.privateca.v1.CaPool.PublishingOptions.EncodingFormat encoding_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The encodingFormat to set.
      Returns:
      This builder for chaining.
    • clearEncodingFormat

      public CaPool.PublishingOptions.Builder clearEncodingFormat()
       Optional. Specifies the encoding format of each
       [CertificateAuthority][google.cloud.security.privateca.v1.CertificateAuthority]
       resource's CA certificate and CRLs. If this is omitted, CA certificates
       and CRLs will be published in PEM.
       
      .google.cloud.security.privateca.v1.CaPool.PublishingOptions.EncodingFormat encoding_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.