Class X509Parameters.CaOptions.Builder

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

public static final class X509Parameters.CaOptions.Builder extends com.google.protobuf.GeneratedMessage.Builder<X509Parameters.CaOptions.Builder> implements X509Parameters.CaOptionsOrBuilder
 Describes the X.509 basic constraints extension, per [RFC 5280
 section 4.2.1.9](https://tools.ietf.org/html/rfc5280#section-4.2.1.9)
 
Protobuf type google.cloud.security.privateca.v1.X509Parameters.CaOptions
  • 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<X509Parameters.CaOptions.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<X509Parameters.CaOptions.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<X509Parameters.CaOptions.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public X509Parameters.CaOptions.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<X509Parameters.CaOptions.Builder>
      Throws:
      IOException
    • hasIsCa

      public boolean hasIsCa()
       Optional. Refers to the "CA" boolean field in the X.509 extension.
       When this value is missing, the basic constraints extension will be
       omitted from the certificate.
       
      optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasIsCa in interface X509Parameters.CaOptionsOrBuilder
      Returns:
      Whether the isCa field is set.
    • getIsCa

      public boolean getIsCa()
       Optional. Refers to the "CA" boolean field in the X.509 extension.
       When this value is missing, the basic constraints extension will be
       omitted from the certificate.
       
      optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIsCa in interface X509Parameters.CaOptionsOrBuilder
      Returns:
      The isCa.
    • setIsCa

      public X509Parameters.CaOptions.Builder setIsCa(boolean value)
       Optional. Refers to the "CA" boolean field in the X.509 extension.
       When this value is missing, the basic constraints extension will be
       omitted from the certificate.
       
      optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The isCa to set.
      Returns:
      This builder for chaining.
    • clearIsCa

       Optional. Refers to the "CA" boolean field in the X.509 extension.
       When this value is missing, the basic constraints extension will be
       omitted from the certificate.
       
      optional bool is_ca = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasMaxIssuerPathLength

      public boolean hasMaxIssuerPathLength()
       Optional. Refers to the path length constraint field in the X.509
       extension. For a CA certificate, this value describes the depth of
       subordinate CA certificates that are allowed. If this value is less than
       0, the request will fail. If this value is missing, the max path length
       will be omitted from the certificate.
       
      optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasMaxIssuerPathLength in interface X509Parameters.CaOptionsOrBuilder
      Returns:
      Whether the maxIssuerPathLength field is set.
    • getMaxIssuerPathLength

      public int getMaxIssuerPathLength()
       Optional. Refers to the path length constraint field in the X.509
       extension. For a CA certificate, this value describes the depth of
       subordinate CA certificates that are allowed. If this value is less than
       0, the request will fail. If this value is missing, the max path length
       will be omitted from the certificate.
       
      optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxIssuerPathLength in interface X509Parameters.CaOptionsOrBuilder
      Returns:
      The maxIssuerPathLength.
    • setMaxIssuerPathLength

      public X509Parameters.CaOptions.Builder setMaxIssuerPathLength(int value)
       Optional. Refers to the path length constraint field in the X.509
       extension. For a CA certificate, this value describes the depth of
       subordinate CA certificates that are allowed. If this value is less than
       0, the request will fail. If this value is missing, the max path length
       will be omitted from the certificate.
       
      optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The maxIssuerPathLength to set.
      Returns:
      This builder for chaining.
    • clearMaxIssuerPathLength

      public X509Parameters.CaOptions.Builder clearMaxIssuerPathLength()
       Optional. Refers to the path length constraint field in the X.509
       extension. For a CA certificate, this value describes the depth of
       subordinate CA certificates that are allowed. If this value is less than
       0, the request will fail. If this value is missing, the max path length
       will be omitted from the certificate.
       
      optional int32 max_issuer_path_length = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.