Class SubjectAltNames
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.security.privateca.v1beta1.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 typegoogle.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
-
-
Field Summary
Fields Modifier and Type Field Description static int
CUSTOM_SANS_FIELD_NUMBER
static int
DNS_NAMES_FIELD_NUMBER
static int
EMAIL_ADDRESSES_FIELD_NUMBER
static int
IP_ADDRESSES_FIELD_NUMBER
static int
URIS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
X509Extension
getCustomSans(int index)
Contains additional subject alternative name values.int
getCustomSansCount()
Contains additional subject alternative name values.List<X509Extension>
getCustomSansList()
Contains additional subject alternative name values.X509ExtensionOrBuilder
getCustomSansOrBuilder(int index)
Contains additional subject alternative name values.List<? extends X509ExtensionOrBuilder>
getCustomSansOrBuilderList()
Contains additional subject alternative name values.static SubjectAltNames
getDefaultInstance()
SubjectAltNames
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDnsNames(int index)
Contains only valid, fully-qualified host names.com.google.protobuf.ByteString
getDnsNamesBytes(int index)
Contains only valid, fully-qualified host names.int
getDnsNamesCount()
Contains only valid, fully-qualified host names.com.google.protobuf.ProtocolStringList
getDnsNamesList()
Contains only valid, fully-qualified host names.String
getEmailAddresses(int index)
Contains only valid RFC 2822 E-mail addresses.com.google.protobuf.ByteString
getEmailAddressesBytes(int index)
Contains only valid RFC 2822 E-mail addresses.int
getEmailAddressesCount()
Contains only valid RFC 2822 E-mail addresses.com.google.protobuf.ProtocolStringList
getEmailAddressesList()
Contains only valid RFC 2822 E-mail addresses.String
getIpAddresses(int index)
Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.com.google.protobuf.ByteString
getIpAddressesBytes(int index)
Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.int
getIpAddressesCount()
Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.com.google.protobuf.ProtocolStringList
getIpAddressesList()
Contains only valid 32-bit IPv4 addresses or RFC 4291 IPv6 addresses.com.google.protobuf.Parser<SubjectAltNames>
getParserForType()
int
getSerializedSize()
String
getUris(int index)
Contains only valid RFC 3986 URIs.com.google.protobuf.ByteString
getUrisBytes(int index)
Contains only valid RFC 3986 URIs.int
getUrisCount()
Contains only valid RFC 3986 URIs.com.google.protobuf.ProtocolStringList
getUrisList()
Contains only valid RFC 3986 URIs.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static SubjectAltNames.Builder
newBuilder()
static SubjectAltNames.Builder
newBuilder(SubjectAltNames prototype)
SubjectAltNames.Builder
newBuilderForType()
protected SubjectAltNames.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static SubjectAltNames
parseDelimitedFrom(InputStream input)
static SubjectAltNames
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SubjectAltNames
parseFrom(byte[] data)
static SubjectAltNames
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SubjectAltNames
parseFrom(com.google.protobuf.ByteString data)
static SubjectAltNames
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SubjectAltNames
parseFrom(com.google.protobuf.CodedInputStream input)
static SubjectAltNames
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SubjectAltNames
parseFrom(InputStream input)
static SubjectAltNames
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SubjectAltNames
parseFrom(ByteBuffer data)
static SubjectAltNames
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<SubjectAltNames>
parser()
SubjectAltNames.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DNS_NAMES_FIELD_NUMBER
public static final int DNS_NAMES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
URIS_FIELD_NUMBER
public static final int URIS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EMAIL_ADDRESSES_FIELD_NUMBER
public static final int EMAIL_ADDRESSES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IP_ADDRESSES_FIELD_NUMBER
public static final int IP_ADDRESSES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CUSTOM_SANS_FIELD_NUMBER
public static final int CUSTOM_SANS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.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 classcom.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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- Returns:
- A list containing the uris.
-
getUrisCount
public int getUrisCount()
Contains only valid RFC 3986 URIs.
repeated string uris = 2;
- Specified by:
getUrisCount
in interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- 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 interfaceSubjectAltNamesOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the ipAddresses at the given index.
-
getCustomSansList
public List<X509Extension> getCustomSansList()
Contains additional subject alternative name values.
repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5;
- Specified by:
getCustomSansList
in interfaceSubjectAltNamesOrBuilder
-
getCustomSansOrBuilderList
public List<? extends X509ExtensionOrBuilder> getCustomSansOrBuilderList()
Contains additional subject alternative name values.
repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5;
- Specified by:
getCustomSansOrBuilderList
in interfaceSubjectAltNamesOrBuilder
-
getCustomSansCount
public int getCustomSansCount()
Contains additional subject alternative name values.
repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5;
- Specified by:
getCustomSansCount
in interfaceSubjectAltNamesOrBuilder
-
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 interfaceSubjectAltNamesOrBuilder
-
getCustomSansOrBuilder
public X509ExtensionOrBuilder getCustomSansOrBuilder(int index)
Contains additional subject alternative name values.
repeated .google.cloud.security.privateca.v1beta1.X509Extension custom_sans = 5;
- Specified by:
getCustomSansOrBuilder
in interfaceSubjectAltNamesOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.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(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SubjectAltNames parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SubjectAltNames parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SubjectAltNames parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static SubjectAltNames parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
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 interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SubjectAltNames.Builder newBuilder()
-
newBuilder
public static SubjectAltNames.Builder newBuilder(SubjectAltNames prototype)
-
toBuilder
public SubjectAltNames.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SubjectAltNames.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SubjectAltNames getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SubjectAltNames> parser()
-
getParserForType
public com.google.protobuf.Parser<SubjectAltNames> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SubjectAltNames getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-