java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.security.privateca.v1.Subject
All Implemented Interfaces:
SubjectOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Subject extends com.google.protobuf.GeneratedMessage implements SubjectOrBuilder
 [Subject][google.cloud.security.privateca.v1.Subject] describes parts of a
 distinguished name that, in turn, describes the subject of the certificate.
 
Protobuf type google.cloud.security.privateca.v1.Subject
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    [Subject][google.cloud.security.privateca.v1.Subject] describes parts of a distinguished name that, in turn, describes the subject of the certificate.

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The "common name" of the subject.
    com.google.protobuf.ByteString
    The "common name" of the subject.
    The country code of the subject.
    com.google.protobuf.ByteString
    The country code of the subject.
    static Subject
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    The locality or city of the subject.
    com.google.protobuf.ByteString
    The locality or city of the subject.
    The organization of the subject.
    The organizational_unit of the subject.
    com.google.protobuf.ByteString
    The organizational_unit of the subject.
    com.google.protobuf.ByteString
    The organization of the subject.
    com.google.protobuf.Parser<Subject>
     
    The postal code of the subject.
    com.google.protobuf.ByteString
    The postal code of the subject.
    The province, territory, or regional state of the subject.
    com.google.protobuf.ByteString
    The province, territory, or regional state of the subject.
    getRdnSequence(int index)
    This field can be used in place of the named subject fields.
    int
    This field can be used in place of the named subject fields.
    This field can be used in place of the named subject fields.
    This field can be used in place of the named subject fields.
    This field can be used in place of the named subject fields.
    int
     
    The street address of the subject.
    com.google.protobuf.ByteString
    The street address of the subject.
    int
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Subject prototype)
     
     
    protected Subject.Builder
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static Subject
     
    static Subject
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Subject
    parseFrom(byte[] data)
     
    static Subject
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Subject
    parseFrom(com.google.protobuf.ByteString data)
     
    static Subject
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Subject
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Subject
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Subject
     
    static Subject
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Subject
     
    static Subject
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Subject>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • COMMON_NAME_FIELD_NUMBER

      public static final int COMMON_NAME_FIELD_NUMBER
      See Also:
    • COUNTRY_CODE_FIELD_NUMBER

      public static final int COUNTRY_CODE_FIELD_NUMBER
      See Also:
    • ORGANIZATION_FIELD_NUMBER

      public static final int ORGANIZATION_FIELD_NUMBER
      See Also:
    • ORGANIZATIONAL_UNIT_FIELD_NUMBER

      public static final int ORGANIZATIONAL_UNIT_FIELD_NUMBER
      See Also:
    • LOCALITY_FIELD_NUMBER

      public static final int LOCALITY_FIELD_NUMBER
      See Also:
    • PROVINCE_FIELD_NUMBER

      public static final int PROVINCE_FIELD_NUMBER
      See Also:
    • STREET_ADDRESS_FIELD_NUMBER

      public static final int STREET_ADDRESS_FIELD_NUMBER
      See Also:
    • POSTAL_CODE_FIELD_NUMBER

      public static final int POSTAL_CODE_FIELD_NUMBER
      See Also:
    • RDN_SEQUENCE_FIELD_NUMBER

      public static final int RDN_SEQUENCE_FIELD_NUMBER
      See Also:
  • 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
    • getCommonName

      public String getCommonName()
       The "common name" of the subject.
       
      string common_name = 1;
      Specified by:
      getCommonName in interface SubjectOrBuilder
      Returns:
      The commonName.
    • getCommonNameBytes

      public com.google.protobuf.ByteString getCommonNameBytes()
       The "common name" of the subject.
       
      string common_name = 1;
      Specified by:
      getCommonNameBytes in interface SubjectOrBuilder
      Returns:
      The bytes for commonName.
    • getCountryCode

      public String getCountryCode()
       The country code of the subject.
       
      string country_code = 2;
      Specified by:
      getCountryCode in interface SubjectOrBuilder
      Returns:
      The countryCode.
    • getCountryCodeBytes

      public com.google.protobuf.ByteString getCountryCodeBytes()
       The country code of the subject.
       
      string country_code = 2;
      Specified by:
      getCountryCodeBytes in interface SubjectOrBuilder
      Returns:
      The bytes for countryCode.
    • getOrganization

      public String getOrganization()
       The organization of the subject.
       
      string organization = 3;
      Specified by:
      getOrganization in interface SubjectOrBuilder
      Returns:
      The organization.
    • getOrganizationBytes

      public com.google.protobuf.ByteString getOrganizationBytes()
       The organization of the subject.
       
      string organization = 3;
      Specified by:
      getOrganizationBytes in interface SubjectOrBuilder
      Returns:
      The bytes for organization.
    • getOrganizationalUnit

      public String getOrganizationalUnit()
       The organizational_unit of the subject.
       
      string organizational_unit = 4;
      Specified by:
      getOrganizationalUnit in interface SubjectOrBuilder
      Returns:
      The organizationalUnit.
    • getOrganizationalUnitBytes

      public com.google.protobuf.ByteString getOrganizationalUnitBytes()
       The organizational_unit of the subject.
       
      string organizational_unit = 4;
      Specified by:
      getOrganizationalUnitBytes in interface SubjectOrBuilder
      Returns:
      The bytes for organizationalUnit.
    • getLocality

      public String getLocality()
       The locality or city of the subject.
       
      string locality = 5;
      Specified by:
      getLocality in interface SubjectOrBuilder
      Returns:
      The locality.
    • getLocalityBytes

      public com.google.protobuf.ByteString getLocalityBytes()
       The locality or city of the subject.
       
      string locality = 5;
      Specified by:
      getLocalityBytes in interface SubjectOrBuilder
      Returns:
      The bytes for locality.
    • getProvince

      public String getProvince()
       The province, territory, or regional state of the subject.
       
      string province = 6;
      Specified by:
      getProvince in interface SubjectOrBuilder
      Returns:
      The province.
    • getProvinceBytes

      public com.google.protobuf.ByteString getProvinceBytes()
       The province, territory, or regional state of the subject.
       
      string province = 6;
      Specified by:
      getProvinceBytes in interface SubjectOrBuilder
      Returns:
      The bytes for province.
    • getStreetAddress

      public String getStreetAddress()
       The street address of the subject.
       
      string street_address = 7;
      Specified by:
      getStreetAddress in interface SubjectOrBuilder
      Returns:
      The streetAddress.
    • getStreetAddressBytes

      public com.google.protobuf.ByteString getStreetAddressBytes()
       The street address of the subject.
       
      string street_address = 7;
      Specified by:
      getStreetAddressBytes in interface SubjectOrBuilder
      Returns:
      The bytes for streetAddress.
    • getPostalCode

      public String getPostalCode()
       The postal code of the subject.
       
      string postal_code = 8;
      Specified by:
      getPostalCode in interface SubjectOrBuilder
      Returns:
      The postalCode.
    • getPostalCodeBytes

      public com.google.protobuf.ByteString getPostalCodeBytes()
       The postal code of the subject.
       
      string postal_code = 8;
      Specified by:
      getPostalCodeBytes in interface SubjectOrBuilder
      Returns:
      The bytes for postalCode.
    • getRdnSequenceList

      public List<RelativeDistinguishedName> getRdnSequenceList()
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
      Specified by:
      getRdnSequenceList in interface SubjectOrBuilder
    • getRdnSequenceOrBuilderList

      public List<? extends RelativeDistinguishedNameOrBuilder> getRdnSequenceOrBuilderList()
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
      Specified by:
      getRdnSequenceOrBuilderList in interface SubjectOrBuilder
    • getRdnSequenceCount

      public int getRdnSequenceCount()
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
      Specified by:
      getRdnSequenceCount in interface SubjectOrBuilder
    • getRdnSequence

      public RelativeDistinguishedName getRdnSequence(int index)
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
      Specified by:
      getRdnSequence in interface SubjectOrBuilder
    • getRdnSequenceOrBuilder

      public RelativeDistinguishedNameOrBuilder getRdnSequenceOrBuilder(int index)
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
      Specified by:
      getRdnSequenceOrBuilder in interface SubjectOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 Subject parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Subject parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Subject parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Subject parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Subject parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Subject parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public static Subject.Builder newBuilder()
    • newBuilder

      public static Subject.Builder newBuilder(Subject prototype)
    • toBuilder

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

      protected Subject.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Subject getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Subject> 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.GeneratedMessage
    • getDefaultInstanceForType

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