Class SubjectAltNames

  • All Implemented Interfaces:
    SubjectAltNamesOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class SubjectAltNames
    extends com.google.protobuf.GeneratedMessageV3
    implements SubjectAltNamesOrBuilder
     [SubjectAltNames][google.cloud.security.privateca.v1beta1.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.v1beta1.SubjectAltNames
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SubjectAltNames.Builder
      [SubjectAltNames][google.cloud.security.privateca.v1beta1.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).
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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.
      • 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.
      • 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.
      • getCustomSansCount

        public int getCustomSansCount()
         Contains additional subject alternative name values.
         
        repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5;
        Specified by:
        getCustomSansCount in interface SubjectAltNamesOrBuilder
      • getCustomSans

        public X509Extension getCustomSans​(int index)
         Contains additional subject alternative name values.
         
        repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5;
        Specified by:
        getCustomSans in interface SubjectAltNamesOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static SubjectAltNames parseFrom​(ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SubjectAltNames parseFrom​(ByteBuffer data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SubjectAltNames parseFrom​(com.google.protobuf.ByteString data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SubjectAltNames parseFrom​(com.google.protobuf.ByteString data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SubjectAltNames parseFrom​(byte[] data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SubjectAltNames parseFrom​(byte[] data,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SubjectAltNames parseFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected SubjectAltNames.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

        public static com.google.protobuf.Parser<SubjectAltNames> parser()
      • getParserForType

        public com.google.protobuf.Parser<SubjectAltNames> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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