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 Summary
Modifier and TypeMethodDescriptionaddAllRdnSequence(Iterable<? extends RelativeDistinguishedName> values) This field can be used in place of the named subject fields.addRdnSequence(int index, RelativeDistinguishedName value) This field can be used in place of the named subject fields.addRdnSequence(int index, RelativeDistinguishedName.Builder builderForValue) This field can be used in place of the named subject fields.This field can be used in place of the named subject fields.addRdnSequence(RelativeDistinguishedName.Builder builderForValue) This field can be used in place of the named subject fields.This field can be used in place of the named subject fields.addRdnSequenceBuilder(int index) This field can be used in place of the named subject fields.build()clear()The "common name" of the subject.The country code of the subject.The locality or city of the subject.The organization of the subject.The organizational_unit of the subject.The postal code of the subject.The province, territory, or regional state of the subject.This field can be used in place of the named subject fields.The street address of the subject.The "common name" of the subject.com.google.protobuf.ByteStringThe "common name" of the subject.The country code of the subject.com.google.protobuf.ByteStringThe country code of the subject.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe locality or city of the subject.com.google.protobuf.ByteStringThe locality or city of the subject.The organization of the subject.The organizational_unit of the subject.com.google.protobuf.ByteStringThe organizational_unit of the subject.com.google.protobuf.ByteStringThe organization of the subject.The postal code of the subject.com.google.protobuf.ByteStringThe postal code of the subject.The province, territory, or regional state of the subject.com.google.protobuf.ByteStringThe province, territory, or regional state of the subject.getRdnSequence(int index) This field can be used in place of the named subject fields.getRdnSequenceBuilder(int index) This field can be used in place of the named subject fields.This field can be used in place of the named subject fields.intThis field can be used in place of the named subject fields.This field can be used in place of the named subject fields.getRdnSequenceOrBuilder(int index) This field can be used in place of the named subject fields.List<? extends RelativeDistinguishedNameOrBuilder>This field can be used in place of the named subject fields.The street address of the subject.com.google.protobuf.ByteStringThe street address of the subject.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeRdnSequence(int index) This field can be used in place of the named subject fields.setCommonName(String value) The "common name" of the subject.setCommonNameBytes(com.google.protobuf.ByteString value) The "common name" of the subject.setCountryCode(String value) The country code of the subject.setCountryCodeBytes(com.google.protobuf.ByteString value) The country code of the subject.setLocality(String value) The locality or city of the subject.setLocalityBytes(com.google.protobuf.ByteString value) The locality or city of the subject.setOrganization(String value) The organization of the subject.setOrganizationalUnit(String value) The organizational_unit of the subject.setOrganizationalUnitBytes(com.google.protobuf.ByteString value) The organizational_unit of the subject.setOrganizationBytes(com.google.protobuf.ByteString value) The organization of the subject.setPostalCode(String value) The postal code of the subject.setPostalCodeBytes(com.google.protobuf.ByteString value) The postal code of the subject.setProvince(String value) The province, territory, or regional state of the subject.setProvinceBytes(com.google.protobuf.ByteString value) The province, territory, or regional state of the subject.setRdnSequence(int index, RelativeDistinguishedName value) This field can be used in place of the named subject fields.setRdnSequence(int index, RelativeDistinguishedName.Builder builderForValue) This field can be used in place of the named subject fields.setStreetAddress(String value) The street address of the subject.setStreetAddressBytes(com.google.protobuf.ByteString value) The street address of the subject.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Subject.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Subject.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Subject.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Subject.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Subject.Builder>- Throws:
IOException
-
getCommonName
The "common name" of the subject.
string common_name = 1;- Specified by:
getCommonNamein interfaceSubjectOrBuilder- Returns:
- The commonName.
-
getCommonNameBytes
public com.google.protobuf.ByteString getCommonNameBytes()The "common name" of the subject.
string common_name = 1;- Specified by:
getCommonNameBytesin interfaceSubjectOrBuilder- Returns:
- The bytes for commonName.
-
setCommonName
The "common name" of the subject.
string common_name = 1;- Parameters:
value- The commonName to set.- Returns:
- This builder for chaining.
-
clearCommonName
The "common name" of the subject.
string common_name = 1;- Returns:
- This builder for chaining.
-
setCommonNameBytes
The "common name" of the subject.
string common_name = 1;- Parameters:
value- The bytes for commonName to set.- Returns:
- This builder for chaining.
-
getCountryCode
The country code of the subject.
string country_code = 2;- Specified by:
getCountryCodein interfaceSubjectOrBuilder- Returns:
- The countryCode.
-
getCountryCodeBytes
public com.google.protobuf.ByteString getCountryCodeBytes()The country code of the subject.
string country_code = 2;- Specified by:
getCountryCodeBytesin interfaceSubjectOrBuilder- Returns:
- The bytes for countryCode.
-
setCountryCode
The country code of the subject.
string country_code = 2;- Parameters:
value- The countryCode to set.- Returns:
- This builder for chaining.
-
clearCountryCode
The country code of the subject.
string country_code = 2;- Returns:
- This builder for chaining.
-
setCountryCodeBytes
The country code of the subject.
string country_code = 2;- Parameters:
value- The bytes for countryCode to set.- Returns:
- This builder for chaining.
-
getOrganization
The organization of the subject.
string organization = 3;- Specified by:
getOrganizationin interfaceSubjectOrBuilder- Returns:
- The organization.
-
getOrganizationBytes
public com.google.protobuf.ByteString getOrganizationBytes()The organization of the subject.
string organization = 3;- Specified by:
getOrganizationBytesin interfaceSubjectOrBuilder- Returns:
- The bytes for organization.
-
setOrganization
The organization of the subject.
string organization = 3;- Parameters:
value- The organization to set.- Returns:
- This builder for chaining.
-
clearOrganization
The organization of the subject.
string organization = 3;- Returns:
- This builder for chaining.
-
setOrganizationBytes
The organization of the subject.
string organization = 3;- Parameters:
value- The bytes for organization to set.- Returns:
- This builder for chaining.
-
getOrganizationalUnit
The organizational_unit of the subject.
string organizational_unit = 4;- Specified by:
getOrganizationalUnitin interfaceSubjectOrBuilder- Returns:
- The organizationalUnit.
-
getOrganizationalUnitBytes
public com.google.protobuf.ByteString getOrganizationalUnitBytes()The organizational_unit of the subject.
string organizational_unit = 4;- Specified by:
getOrganizationalUnitBytesin interfaceSubjectOrBuilder- Returns:
- The bytes for organizationalUnit.
-
setOrganizationalUnit
The organizational_unit of the subject.
string organizational_unit = 4;- Parameters:
value- The organizationalUnit to set.- Returns:
- This builder for chaining.
-
clearOrganizationalUnit
The organizational_unit of the subject.
string organizational_unit = 4;- Returns:
- This builder for chaining.
-
setOrganizationalUnitBytes
The organizational_unit of the subject.
string organizational_unit = 4;- Parameters:
value- The bytes for organizationalUnit to set.- Returns:
- This builder for chaining.
-
getLocality
The locality or city of the subject.
string locality = 5;- Specified by:
getLocalityin interfaceSubjectOrBuilder- Returns:
- The locality.
-
getLocalityBytes
public com.google.protobuf.ByteString getLocalityBytes()The locality or city of the subject.
string locality = 5;- Specified by:
getLocalityBytesin interfaceSubjectOrBuilder- Returns:
- The bytes for locality.
-
setLocality
The locality or city of the subject.
string locality = 5;- Parameters:
value- The locality to set.- Returns:
- This builder for chaining.
-
clearLocality
The locality or city of the subject.
string locality = 5;- Returns:
- This builder for chaining.
-
setLocalityBytes
The locality or city of the subject.
string locality = 5;- Parameters:
value- The bytes for locality to set.- Returns:
- This builder for chaining.
-
getProvince
The province, territory, or regional state of the subject.
string province = 6;- Specified by:
getProvincein interfaceSubjectOrBuilder- Returns:
- The province.
-
getProvinceBytes
public com.google.protobuf.ByteString getProvinceBytes()The province, territory, or regional state of the subject.
string province = 6;- Specified by:
getProvinceBytesin interfaceSubjectOrBuilder- Returns:
- The bytes for province.
-
setProvince
The province, territory, or regional state of the subject.
string province = 6;- Parameters:
value- The province to set.- Returns:
- This builder for chaining.
-
clearProvince
The province, territory, or regional state of the subject.
string province = 6;- Returns:
- This builder for chaining.
-
setProvinceBytes
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
The street address of the subject.
string street_address = 7;- Specified by:
getStreetAddressin interfaceSubjectOrBuilder- Returns:
- The streetAddress.
-
getStreetAddressBytes
public com.google.protobuf.ByteString getStreetAddressBytes()The street address of the subject.
string street_address = 7;- Specified by:
getStreetAddressBytesin interfaceSubjectOrBuilder- Returns:
- The bytes for streetAddress.
-
setStreetAddress
The street address of the subject.
string street_address = 7;- Parameters:
value- The streetAddress to set.- Returns:
- This builder for chaining.
-
clearStreetAddress
The street address of the subject.
string street_address = 7;- Returns:
- This builder for chaining.
-
setStreetAddressBytes
The street address of the subject.
string street_address = 7;- Parameters:
value- The bytes for streetAddress to set.- Returns:
- This builder for chaining.
-
getPostalCode
The postal code of the subject.
string postal_code = 8;- Specified by:
getPostalCodein interfaceSubjectOrBuilder- Returns:
- The postalCode.
-
getPostalCodeBytes
public com.google.protobuf.ByteString getPostalCodeBytes()The postal code of the subject.
string postal_code = 8;- Specified by:
getPostalCodeBytesin interfaceSubjectOrBuilder- Returns:
- The bytes for postalCode.
-
setPostalCode
The postal code of the subject.
string postal_code = 8;- Parameters:
value- The postalCode to set.- Returns:
- This builder for chaining.
-
clearPostalCode
The postal code of the subject.
string postal_code = 8;- Returns:
- This builder for chaining.
-
setPostalCodeBytes
The postal code of the subject.
string postal_code = 8;- Parameters:
value- The bytes for postalCode to set.- Returns:
- This builder for chaining.
-
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:
getRdnSequenceListin interfaceSubjectOrBuilder
-
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:
getRdnSequenceCountin interfaceSubjectOrBuilder
-
getRdnSequence
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;- Specified by:
getRdnSequencein interfaceSubjectOrBuilder
-
setRdnSequence
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; -
setRdnSequence
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; -
addRdnSequence
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; -
addRdnSequence
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; -
addRdnSequence
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; -
addRdnSequence
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; -
addAllRdnSequence
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; -
clearRdnSequence
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; -
removeRdnSequence
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; -
getRdnSequenceBuilder
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; -
getRdnSequenceOrBuilder
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;- Specified by:
getRdnSequenceOrBuilderin interfaceSubjectOrBuilder
-
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:
getRdnSequenceOrBuilderListin interfaceSubjectOrBuilder
-
addRdnSequenceBuilder
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; -
addRdnSequenceBuilder
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9; -
getRdnSequenceBuilderList
This field can be used in place of the named subject fields.
repeated .google.cloud.security.privateca.v1.RelativeDistinguishedName rdn_sequence = 9;
-