Class Subject.Builder

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

public static final class Subject.Builder extends com.google.protobuf.GeneratedMessage.Builder<Subject.Builder> 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
  • 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<Subject.Builder>
    • clear

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

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

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

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

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

      public Subject.Builder mergeFrom(Subject other)
    • isInitialized

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

      public Subject.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<Subject.Builder>
      Throws:
      IOException
    • 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.
    • setCommonName

      public Subject.Builder setCommonName(String value)
       The "common name" of the subject.
       
      string common_name = 1;
      Parameters:
      value - The commonName to set.
      Returns:
      This builder for chaining.
    • clearCommonName

      public Subject.Builder clearCommonName()
       The "common name" of the subject.
       
      string common_name = 1;
      Returns:
      This builder for chaining.
    • setCommonNameBytes

      public Subject.Builder setCommonNameBytes(com.google.protobuf.ByteString value)
       The "common name" of the subject.
       
      string common_name = 1;
      Parameters:
      value - The bytes for commonName to set.
      Returns:
      This builder for chaining.
    • 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.
    • setCountryCode

      public Subject.Builder setCountryCode(String value)
       The country code of the subject.
       
      string country_code = 2;
      Parameters:
      value - The countryCode to set.
      Returns:
      This builder for chaining.
    • clearCountryCode

      public Subject.Builder clearCountryCode()
       The country code of the subject.
       
      string country_code = 2;
      Returns:
      This builder for chaining.
    • setCountryCodeBytes

      public Subject.Builder setCountryCodeBytes(com.google.protobuf.ByteString value)
       The country code of the subject.
       
      string country_code = 2;
      Parameters:
      value - The bytes for countryCode to set.
      Returns:
      This builder for chaining.
    • 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.
    • setOrganization

      public Subject.Builder setOrganization(String value)
       The organization of the subject.
       
      string organization = 3;
      Parameters:
      value - The organization to set.
      Returns:
      This builder for chaining.
    • clearOrganization

      public Subject.Builder clearOrganization()
       The organization of the subject.
       
      string organization = 3;
      Returns:
      This builder for chaining.
    • setOrganizationBytes

      public Subject.Builder setOrganizationBytes(com.google.protobuf.ByteString value)
       The organization of the subject.
       
      string organization = 3;
      Parameters:
      value - The bytes for organization to set.
      Returns:
      This builder for chaining.
    • 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.
    • setOrganizationalUnit

      public Subject.Builder setOrganizationalUnit(String value)
       The organizational_unit of the subject.
       
      string organizational_unit = 4;
      Parameters:
      value - The organizationalUnit to set.
      Returns:
      This builder for chaining.
    • clearOrganizationalUnit

      public Subject.Builder clearOrganizationalUnit()
       The organizational_unit of the subject.
       
      string organizational_unit = 4;
      Returns:
      This builder for chaining.
    • setOrganizationalUnitBytes

      public Subject.Builder setOrganizationalUnitBytes(com.google.protobuf.ByteString value)
       The organizational_unit of the subject.
       
      string organizational_unit = 4;
      Parameters:
      value - The bytes for organizationalUnit to set.
      Returns:
      This builder for chaining.
    • 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.
    • setLocality

      public Subject.Builder setLocality(String value)
       The locality or city of the subject.
       
      string locality = 5;
      Parameters:
      value - The locality to set.
      Returns:
      This builder for chaining.
    • clearLocality

      public Subject.Builder clearLocality()
       The locality or city of the subject.
       
      string locality = 5;
      Returns:
      This builder for chaining.
    • setLocalityBytes

      public Subject.Builder setLocalityBytes(com.google.protobuf.ByteString value)
       The locality or city of the subject.
       
      string locality = 5;
      Parameters:
      value - The bytes for locality to set.
      Returns:
      This builder for chaining.
    • 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.
    • setProvince

      public Subject.Builder setProvince(String value)
       The province, territory, or regional state of the subject.
       
      string province = 6;
      Parameters:
      value - The province to set.
      Returns:
      This builder for chaining.
    • clearProvince

      public Subject.Builder clearProvince()
       The province, territory, or regional state of the subject.
       
      string province = 6;
      Returns:
      This builder for chaining.
    • setProvinceBytes

      public Subject.Builder setProvinceBytes(com.google.protobuf.ByteString value)
       The province, territory, or regional state of the subject.
       
      string province = 6;
      Parameters:
      value - The bytes for province to set.
      Returns:
      This builder for chaining.
    • 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.
    • setStreetAddress

      public Subject.Builder setStreetAddress(String value)
       The street address of the subject.
       
      string street_address = 7;
      Parameters:
      value - The streetAddress to set.
      Returns:
      This builder for chaining.
    • clearStreetAddress

      public Subject.Builder clearStreetAddress()
       The street address of the subject.
       
      string street_address = 7;
      Returns:
      This builder for chaining.
    • setStreetAddressBytes

      public Subject.Builder setStreetAddressBytes(com.google.protobuf.ByteString value)
       The street address of the subject.
       
      string street_address = 7;
      Parameters:
      value - The bytes for streetAddress to set.
      Returns:
      This builder for chaining.
    • 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.
    • setPostalCode

      public Subject.Builder setPostalCode(String value)
       The postal code of the subject.
       
      string postal_code = 8;
      Parameters:
      value - The postalCode to set.
      Returns:
      This builder for chaining.
    • clearPostalCode

      public Subject.Builder clearPostalCode()
       The postal code of the subject.
       
      string postal_code = 8;
      Returns:
      This builder for chaining.
    • setPostalCodeBytes

      public Subject.Builder setPostalCodeBytes(com.google.protobuf.ByteString value)
       The postal code of the subject.
       
      string postal_code = 8;
      Parameters:
      value - The bytes for postalCode to set.
      Returns:
      This builder for chaining.
    • 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
    • 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
    • setRdnSequence

      public Subject.Builder setRdnSequence(int index, RelativeDistinguishedName value)
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
    • setRdnSequence

      public Subject.Builder setRdnSequence(int index, RelativeDistinguishedName.Builder builderForValue)
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
    • addRdnSequence

      public Subject.Builder addRdnSequence(RelativeDistinguishedName value)
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
    • addRdnSequence

      public Subject.Builder addRdnSequence(int index, RelativeDistinguishedName value)
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
    • addRdnSequence

      public Subject.Builder addRdnSequence(RelativeDistinguishedName.Builder builderForValue)
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
    • addRdnSequence

      public Subject.Builder addRdnSequence(int index, RelativeDistinguishedName.Builder builderForValue)
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
    • addAllRdnSequence

      public Subject.Builder addAllRdnSequence(Iterable<? extends RelativeDistinguishedName> values)
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
    • clearRdnSequence

      public Subject.Builder clearRdnSequence()
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
    • removeRdnSequence

      public Subject.Builder removeRdnSequence(int index)
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
    • getRdnSequenceBuilder

      public RelativeDistinguishedName.Builder getRdnSequenceBuilder(int index)
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
    • 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
    • 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
    • addRdnSequenceBuilder

      public RelativeDistinguishedName.Builder addRdnSequenceBuilder()
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
    • addRdnSequenceBuilder

      public RelativeDistinguishedName.Builder addRdnSequenceBuilder(int index)
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
    • getRdnSequenceBuilderList

      public List<RelativeDistinguishedName.Builder> getRdnSequenceBuilderList()
       This field can be used in place of the named subject fields.
       
      repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;