Class SubjectAltNames.Builder

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

public static final class SubjectAltNames.Builder extends com.google.protobuf.GeneratedMessage.Builder<SubjectAltNames.Builder> implements SubjectAltNamesOrBuilder
 [SubjectAltNames][google.cloud.security.privateca.v1.SubjectAltNames]
 corresponds to a more modern way of listing what the asserted identity is in
 a certificate (i.e., compared to the "common name" in the distinguished
 name).
 
Protobuf type google.cloud.security.privateca.v1.SubjectAltNames
  • 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<SubjectAltNames.Builder>
    • clear

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

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

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

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

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

      public SubjectAltNames.Builder mergeFrom(SubjectAltNames other)
    • isInitialized

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

      public SubjectAltNames.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<SubjectAltNames.Builder>
      Throws:
      IOException
    • getDnsNamesList

      public com.google.protobuf.ProtocolStringList getDnsNamesList()
       Contains only valid, fully-qualified host names.
       
      repeated string dns_names = 1;
      Specified by:
      getDnsNamesList in interface SubjectAltNamesOrBuilder
      Returns:
      A list containing the dnsNames.
    • getDnsNamesCount

      public int getDnsNamesCount()
       Contains only valid, fully-qualified host names.
       
      repeated string dns_names = 1;
      Specified by:
      getDnsNamesCount in interface SubjectAltNamesOrBuilder
      Returns:
      The count of dnsNames.
    • getDnsNames

      public String getDnsNames(int index)
       Contains only valid, fully-qualified host names.
       
      repeated string dns_names = 1;
      Specified by:
      getDnsNames in interface SubjectAltNamesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The dnsNames at the given index.
    • getDnsNamesBytes

      public com.google.protobuf.ByteString getDnsNamesBytes(int index)
       Contains only valid, fully-qualified host names.
       
      repeated string dns_names = 1;
      Specified by:
      getDnsNamesBytes in interface SubjectAltNamesOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the dnsNames at the given index.
    • setDnsNames

      public SubjectAltNames.Builder setDnsNames(int index, String value)
       Contains only valid, fully-qualified host names.
       
      repeated string dns_names = 1;
      Parameters:
      index - The index to set the value at.
      value - The dnsNames to set.
      Returns:
      This builder for chaining.
    • addDnsNames

      public SubjectAltNames.Builder addDnsNames(String value)
       Contains only valid, fully-qualified host names.
       
      repeated string dns_names = 1;
      Parameters:
      value - The dnsNames to add.
      Returns:
      This builder for chaining.
    • addAllDnsNames

      public SubjectAltNames.Builder addAllDnsNames(Iterable<String> values)
       Contains only valid, fully-qualified host names.
       
      repeated string dns_names = 1;
      Parameters:
      values - The dnsNames to add.
      Returns:
      This builder for chaining.
    • clearDnsNames

      public SubjectAltNames.Builder clearDnsNames()
       Contains only valid, fully-qualified host names.
       
      repeated string dns_names = 1;
      Returns:
      This builder for chaining.
    • addDnsNamesBytes

      public SubjectAltNames.Builder addDnsNamesBytes(com.google.protobuf.ByteString value)
       Contains only valid, fully-qualified host names.
       
      repeated string dns_names = 1;
      Parameters:
      value - The bytes of the dnsNames to add.
      Returns:
      This builder for chaining.
    • getUrisList

      public com.google.protobuf.ProtocolStringList getUrisList()
       Contains only valid RFC 3986 URIs.
       
      repeated string uris = 2;
      Specified by:
      getUrisList in interface SubjectAltNamesOrBuilder
      Returns:
      A list containing the uris.
    • getUrisCount

      public int getUrisCount()
       Contains only valid RFC 3986 URIs.
       
      repeated string uris = 2;
      Specified by:
      getUrisCount in interface SubjectAltNamesOrBuilder
      Returns:
      The count of uris.
    • getUris

      public String getUris(int index)
       Contains only valid RFC 3986 URIs.
       
      repeated string uris = 2;
      Specified by:
      getUris in interface SubjectAltNamesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The uris at the given index.
    • getUrisBytes

      public com.google.protobuf.ByteString getUrisBytes(int index)
       Contains only valid RFC 3986 URIs.
       
      repeated string uris = 2;
      Specified by:
      getUrisBytes in interface SubjectAltNamesOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the uris at the given index.
    • setUris

      public SubjectAltNames.Builder setUris(int index, String value)
       Contains only valid RFC 3986 URIs.
       
      repeated string uris = 2;
      Parameters:
      index - The index to set the value at.
      value - The uris to set.
      Returns:
      This builder for chaining.
    • addUris

      public SubjectAltNames.Builder addUris(String value)
       Contains only valid RFC 3986 URIs.
       
      repeated string uris = 2;
      Parameters:
      value - The uris to add.
      Returns:
      This builder for chaining.
    • addAllUris

      public SubjectAltNames.Builder addAllUris(Iterable<String> values)
       Contains only valid RFC 3986 URIs.
       
      repeated string uris = 2;
      Parameters:
      values - The uris to add.
      Returns:
      This builder for chaining.
    • clearUris

      public SubjectAltNames.Builder clearUris()
       Contains only valid RFC 3986 URIs.
       
      repeated string uris = 2;
      Returns:
      This builder for chaining.
    • addUrisBytes

      public SubjectAltNames.Builder addUrisBytes(com.google.protobuf.ByteString value)
       Contains only valid RFC 3986 URIs.
       
      repeated string uris = 2;
      Parameters:
      value - The bytes of the uris to add.
      Returns:
      This builder for chaining.
    • getEmailAddressesList

      public com.google.protobuf.ProtocolStringList getEmailAddressesList()
       Contains only valid RFC 2822 E-mail addresses.
       
      repeated string email_addresses = 3;
      Specified by:
      getEmailAddressesList in interface SubjectAltNamesOrBuilder
      Returns:
      A list containing the emailAddresses.
    • getEmailAddressesCount

      public int getEmailAddressesCount()
       Contains only valid RFC 2822 E-mail addresses.
       
      repeated string email_addresses = 3;
      Specified by:
      getEmailAddressesCount in interface SubjectAltNamesOrBuilder
      Returns:
      The count of emailAddresses.
    • getEmailAddresses

      public String getEmailAddresses(int index)
       Contains only valid RFC 2822 E-mail addresses.
       
      repeated string email_addresses = 3;
      Specified by:
      getEmailAddresses in interface SubjectAltNamesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The emailAddresses at the given index.
    • getEmailAddressesBytes

      public com.google.protobuf.ByteString getEmailAddressesBytes(int index)
       Contains only valid RFC 2822 E-mail addresses.
       
      repeated string email_addresses = 3;
      Specified by:
      getEmailAddressesBytes in interface SubjectAltNamesOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the emailAddresses at the given index.
    • setEmailAddresses

      public SubjectAltNames.Builder setEmailAddresses(int index, String value)
       Contains only valid RFC 2822 E-mail addresses.
       
      repeated string email_addresses = 3;
      Parameters:
      index - The index to set the value at.
      value - The emailAddresses to set.
      Returns:
      This builder for chaining.
    • addEmailAddresses

      public SubjectAltNames.Builder addEmailAddresses(String value)
       Contains only valid RFC 2822 E-mail addresses.
       
      repeated string email_addresses = 3;
      Parameters:
      value - The emailAddresses to add.
      Returns:
      This builder for chaining.
    • addAllEmailAddresses

      public SubjectAltNames.Builder addAllEmailAddresses(Iterable<String> values)
       Contains only valid RFC 2822 E-mail addresses.
       
      repeated string email_addresses = 3;
      Parameters:
      values - The emailAddresses to add.
      Returns:
      This builder for chaining.
    • clearEmailAddresses

      public SubjectAltNames.Builder clearEmailAddresses()
       Contains only valid RFC 2822 E-mail addresses.
       
      repeated string email_addresses = 3;
      Returns:
      This builder for chaining.
    • addEmailAddressesBytes

      public SubjectAltNames.Builder addEmailAddressesBytes(com.google.protobuf.ByteString value)
       Contains only valid RFC 2822 E-mail addresses.
       
      repeated string email_addresses = 3;
      Parameters:
      value - The bytes of the emailAddresses to add.
      Returns:
      This builder for chaining.
    • getIpAddressesList

      public com.google.protobuf.ProtocolStringList getIpAddressesList()
       Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
       
      repeated string ip_addresses = 4;
      Specified by:
      getIpAddressesList in interface SubjectAltNamesOrBuilder
      Returns:
      A list containing the ipAddresses.
    • getIpAddressesCount

      public int getIpAddressesCount()
       Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
       
      repeated string ip_addresses = 4;
      Specified by:
      getIpAddressesCount in interface SubjectAltNamesOrBuilder
      Returns:
      The count of ipAddresses.
    • getIpAddresses

      public String getIpAddresses(int index)
       Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
       
      repeated string ip_addresses = 4;
      Specified by:
      getIpAddresses in interface SubjectAltNamesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ipAddresses at the given index.
    • getIpAddressesBytes

      public com.google.protobuf.ByteString getIpAddressesBytes(int index)
       Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
       
      repeated string ip_addresses = 4;
      Specified by:
      getIpAddressesBytes in interface SubjectAltNamesOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ipAddresses at the given index.
    • setIpAddresses

      public SubjectAltNames.Builder setIpAddresses(int index, String value)
       Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
       
      repeated string ip_addresses = 4;
      Parameters:
      index - The index to set the value at.
      value - The ipAddresses to set.
      Returns:
      This builder for chaining.
    • addIpAddresses

      public SubjectAltNames.Builder addIpAddresses(String value)
       Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
       
      repeated string ip_addresses = 4;
      Parameters:
      value - The ipAddresses to add.
      Returns:
      This builder for chaining.
    • addAllIpAddresses

      public SubjectAltNames.Builder addAllIpAddresses(Iterable<String> values)
       Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
       
      repeated string ip_addresses = 4;
      Parameters:
      values - The ipAddresses to add.
      Returns:
      This builder for chaining.
    • clearIpAddresses

      public SubjectAltNames.Builder clearIpAddresses()
       Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
       
      repeated string ip_addresses = 4;
      Returns:
      This builder for chaining.
    • addIpAddressesBytes

      public SubjectAltNames.Builder addIpAddressesBytes(com.google.protobuf.ByteString value)
       Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.
       
      repeated string ip_addresses = 4;
      Parameters:
      value - The bytes of the ipAddresses to add.
      Returns:
      This builder for chaining.
    • getCustomSansList

      public List<X509Extension> getCustomSansList()
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      Specified by:
      getCustomSansList in interface SubjectAltNamesOrBuilder
    • getCustomSansCount

      public int getCustomSansCount()
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      Specified by:
      getCustomSansCount in interface SubjectAltNamesOrBuilder
    • getCustomSans

      public X509Extension getCustomSans(int index)
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      Specified by:
      getCustomSans in interface SubjectAltNamesOrBuilder
    • setCustomSans

      public SubjectAltNames.Builder setCustomSans(int index, X509Extension value)
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    • setCustomSans

      public SubjectAltNames.Builder setCustomSans(int index, X509Extension.Builder builderForValue)
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    • addCustomSans

      public SubjectAltNames.Builder addCustomSans(X509Extension value)
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    • addCustomSans

      public SubjectAltNames.Builder addCustomSans(int index, X509Extension value)
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    • addCustomSans

      public SubjectAltNames.Builder addCustomSans(X509Extension.Builder builderForValue)
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    • addCustomSans

      public SubjectAltNames.Builder addCustomSans(int index, X509Extension.Builder builderForValue)
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    • addAllCustomSans

      public SubjectAltNames.Builder addAllCustomSans(Iterable<? extends X509Extension> values)
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    • clearCustomSans

      public SubjectAltNames.Builder clearCustomSans()
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    • removeCustomSans

      public SubjectAltNames.Builder removeCustomSans(int index)
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    • getCustomSansBuilder

      public X509Extension.Builder getCustomSansBuilder(int index)
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    • getCustomSansOrBuilder

      public X509ExtensionOrBuilder getCustomSansOrBuilder(int index)
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      Specified by:
      getCustomSansOrBuilder in interface SubjectAltNamesOrBuilder
    • getCustomSansOrBuilderList

      public List<? extends X509ExtensionOrBuilder> getCustomSansOrBuilderList()
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
      Specified by:
      getCustomSansOrBuilderList in interface SubjectAltNamesOrBuilder
    • addCustomSansBuilder

      public X509Extension.Builder addCustomSansBuilder()
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    • addCustomSansBuilder

      public X509Extension.Builder addCustomSansBuilder(int index)
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;
    • getCustomSansBuilderList

      public List<X509Extension.Builder> getCustomSansBuilderList()
       Contains additional subject alternative name values.
       For each custom_san, the `value` field must contain an ASN.1 encoded
       UTF8String.
       
      repeated .google.cloud.security.privateca.v1.X509Extension custom_sans = 5;