Class GenerateClientCertificateResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GenerateClientCertificateResponse.Builder>
com.google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.Builder
All Implemented Interfaces:
GenerateClientCertificateResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
GenerateClientCertificateResponse

public static final class GenerateClientCertificateResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<GenerateClientCertificateResponse.Builder> implements GenerateClientCertificateResponseOrBuilder
 Message returned by a GenerateClientCertificate operation.
 
Protobuf type google.cloud.alloydb.v1beta.GenerateClientCertificateResponse
  • 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<GenerateClientCertificateResponse.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<GenerateClientCertificateResponse.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<GenerateClientCertificateResponse.Builder>
    • getDefaultInstanceForType

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

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

      public GenerateClientCertificateResponse.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<GenerateClientCertificateResponse.Builder>
      Throws:
      IOException
    • getPemCertificate

      @Deprecated public String getPemCertificate()
      Deprecated.
      google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1915
       Output only. The pem-encoded, signed X.509 certificate.
       
      string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPemCertificate in interface GenerateClientCertificateResponseOrBuilder
      Returns:
      The pemCertificate.
    • getPemCertificateBytes

      @Deprecated public com.google.protobuf.ByteString getPemCertificateBytes()
      Deprecated.
      google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1915
       Output only. The pem-encoded, signed X.509 certificate.
       
      string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPemCertificateBytes in interface GenerateClientCertificateResponseOrBuilder
      Returns:
      The bytes for pemCertificate.
    • setPemCertificate

      Deprecated.
      google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1915
       Output only. The pem-encoded, signed X.509 certificate.
       
      string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The pemCertificate to set.
      Returns:
      This builder for chaining.
    • clearPemCertificate

      Deprecated.
      google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1915
       Output only. The pem-encoded, signed X.509 certificate.
       
      string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPemCertificateBytes

      @Deprecated public GenerateClientCertificateResponse.Builder setPemCertificateBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.alloydb.v1beta.GenerateClientCertificateResponse.pem_certificate is deprecated. See google/cloud/alloydb/v1beta/service.proto;l=1915
       Output only. The pem-encoded, signed X.509 certificate.
       
      string pem_certificate = 1 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for pemCertificate to set.
      Returns:
      This builder for chaining.
    • getPemCertificateChainList

      public com.google.protobuf.ProtocolStringList getPemCertificateChainList()
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPemCertificateChainList in interface GenerateClientCertificateResponseOrBuilder
      Returns:
      A list containing the pemCertificateChain.
    • getPemCertificateChainCount

      public int getPemCertificateChainCount()
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPemCertificateChainCount in interface GenerateClientCertificateResponseOrBuilder
      Returns:
      The count of pemCertificateChain.
    • getPemCertificateChain

      public String getPemCertificateChain(int index)
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPemCertificateChain in interface GenerateClientCertificateResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The pemCertificateChain at the given index.
    • getPemCertificateChainBytes

      public com.google.protobuf.ByteString getPemCertificateChainBytes(int index)
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPemCertificateChainBytes in interface GenerateClientCertificateResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the pemCertificateChain at the given index.
    • setPemCertificateChain

      public GenerateClientCertificateResponse.Builder setPemCertificateChain(int index, String value)
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The pemCertificateChain to set.
      Returns:
      This builder for chaining.
    • addPemCertificateChain

      public GenerateClientCertificateResponse.Builder addPemCertificateChain(String value)
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The pemCertificateChain to add.
      Returns:
      This builder for chaining.
    • addAllPemCertificateChain

      public GenerateClientCertificateResponse.Builder addAllPemCertificateChain(Iterable<String> values)
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The pemCertificateChain to add.
      Returns:
      This builder for chaining.
    • clearPemCertificateChain

      public GenerateClientCertificateResponse.Builder clearPemCertificateChain()
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addPemCertificateChainBytes

      public GenerateClientCertificateResponse.Builder addPemCertificateChainBytes(com.google.protobuf.ByteString value)
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the pemCertificateChain to add.
      Returns:
      This builder for chaining.
    • getCaCert

      public String getCaCert()
       Optional. The pem-encoded cluster ca X.509 certificate.
       
      string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCaCert in interface GenerateClientCertificateResponseOrBuilder
      Returns:
      The caCert.
    • getCaCertBytes

      public com.google.protobuf.ByteString getCaCertBytes()
       Optional. The pem-encoded cluster ca X.509 certificate.
       
      string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCaCertBytes in interface GenerateClientCertificateResponseOrBuilder
      Returns:
      The bytes for caCert.
    • setCaCert

       Optional. The pem-encoded cluster ca X.509 certificate.
       
      string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The caCert to set.
      Returns:
      This builder for chaining.
    • clearCaCert

       Optional. The pem-encoded cluster ca X.509 certificate.
       
      string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCaCertBytes

      public GenerateClientCertificateResponse.Builder setCaCertBytes(com.google.protobuf.ByteString value)
       Optional. The pem-encoded cluster ca X.509 certificate.
       
      string ca_cert = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for caCert to set.
      Returns:
      This builder for chaining.