Class Subject.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Subject.Builder>
-
- com.google.cloud.security.privateca.v1beta1.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.GeneratedMessageV3.Builder<Subject.Builder> implements SubjectOrBuilder
[Subject][google.cloud.security.privateca.v1beta1.Subject] describes parts of a distinguished name that, in turn, describes the subject of the certificate.
Protobuf typegoogle.cloud.security.privateca.v1beta1.Subject
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Subject.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Subject
build()
Subject
buildPartial()
Subject.Builder
clear()
Subject.Builder
clearCountryCode()
The country code of the subject.Subject.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Subject.Builder
clearLocality()
The locality or city of the subject.Subject.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Subject.Builder
clearOrganization()
The organization of the subject.Subject.Builder
clearOrganizationalUnit()
The organizational_unit of the subject.Subject.Builder
clearPostalCode()
The postal code of the subject.Subject.Builder
clearProvince()
The province, territory, or regional state of the subject.Subject.Builder
clearStreetAddress()
The street address of the subject.Subject.Builder
clone()
String
getCountryCode()
The country code of the subject.com.google.protobuf.ByteString
getCountryCodeBytes()
The country code of the subject.Subject
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getLocality()
The locality or city of the subject.com.google.protobuf.ByteString
getLocalityBytes()
The locality or city of the subject.String
getOrganization()
The organization of the subject.String
getOrganizationalUnit()
The organizational_unit of the subject.com.google.protobuf.ByteString
getOrganizationalUnitBytes()
The organizational_unit of the subject.com.google.protobuf.ByteString
getOrganizationBytes()
The organization of the subject.String
getPostalCode()
The postal code of the subject.com.google.protobuf.ByteString
getPostalCodeBytes()
The postal code of the subject.String
getProvince()
The province, territory, or regional state of the subject.com.google.protobuf.ByteString
getProvinceBytes()
The province, territory, or regional state of the subject.String
getStreetAddress()
The street address of the subject.com.google.protobuf.ByteString
getStreetAddressBytes()
The street address of the subject.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Subject.Builder
mergeFrom(Subject other)
Subject.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Subject.Builder
mergeFrom(com.google.protobuf.Message other)
Subject.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Subject.Builder
setCountryCode(String value)
The country code of the subject.Subject.Builder
setCountryCodeBytes(com.google.protobuf.ByteString value)
The country code of the subject.Subject.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Subject.Builder
setLocality(String value)
The locality or city of the subject.Subject.Builder
setLocalityBytes(com.google.protobuf.ByteString value)
The locality or city of the subject.Subject.Builder
setOrganization(String value)
The organization of the subject.Subject.Builder
setOrganizationalUnit(String value)
The organizational_unit of the subject.Subject.Builder
setOrganizationalUnitBytes(com.google.protobuf.ByteString value)
The organizational_unit of the subject.Subject.Builder
setOrganizationBytes(com.google.protobuf.ByteString value)
The organization of the subject.Subject.Builder
setPostalCode(String value)
The postal code of the subject.Subject.Builder
setPostalCodeBytes(com.google.protobuf.ByteString value)
The postal code of the subject.Subject.Builder
setProvince(String value)
The province, territory, or regional state of the subject.Subject.Builder
setProvinceBytes(com.google.protobuf.ByteString value)
The province, territory, or regional state of the subject.Subject.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Subject.Builder
setStreetAddress(String value)
The street address of the subject.Subject.Builder
setStreetAddressBytes(com.google.protobuf.ByteString value)
The street address of the subject.Subject.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Subject.Builder>
-
clear
public Subject.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subject.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subject.Builder>
-
getDefaultInstanceForType
public Subject getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Subject build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Subject buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Subject.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subject.Builder>
-
setField
public Subject.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subject.Builder>
-
clearField
public Subject.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subject.Builder>
-
clearOneof
public Subject.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subject.Builder>
-
setRepeatedField
public Subject.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subject.Builder>
-
addRepeatedField
public Subject.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subject.Builder>
-
mergeFrom
public Subject.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Subject.Builder>
-
mergeFrom
public Subject.Builder mergeFrom(Subject other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subject.Builder>
-
mergeFrom
public Subject.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Subject.Builder>
- Throws:
IOException
-
getCountryCode
public String getCountryCode()
The country code of the subject.
string country_code = 1;
- Specified by:
getCountryCode
in interfaceSubjectOrBuilder
- Returns:
- The countryCode.
-
getCountryCodeBytes
public com.google.protobuf.ByteString getCountryCodeBytes()
The country code of the subject.
string country_code = 1;
- Specified by:
getCountryCodeBytes
in interfaceSubjectOrBuilder
- Returns:
- The bytes for countryCode.
-
setCountryCode
public Subject.Builder setCountryCode(String value)
The country code of the subject.
string country_code = 1;
- 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 = 1;
- Returns:
- This builder for chaining.
-
setCountryCodeBytes
public Subject.Builder setCountryCodeBytes(com.google.protobuf.ByteString value)
The country code of the subject.
string country_code = 1;
- Parameters:
value
- The bytes for countryCode to set.- Returns:
- This builder for chaining.
-
getOrganization
public String getOrganization()
The organization of the subject.
string organization = 2;
- Specified by:
getOrganization
in interfaceSubjectOrBuilder
- Returns:
- The organization.
-
getOrganizationBytes
public com.google.protobuf.ByteString getOrganizationBytes()
The organization of the subject.
string organization = 2;
- Specified by:
getOrganizationBytes
in interfaceSubjectOrBuilder
- Returns:
- The bytes for organization.
-
setOrganization
public Subject.Builder setOrganization(String value)
The organization of the subject.
string organization = 2;
- Parameters:
value
- The organization to set.- Returns:
- This builder for chaining.
-
clearOrganization
public Subject.Builder clearOrganization()
The organization of the subject.
string organization = 2;
- Returns:
- This builder for chaining.
-
setOrganizationBytes
public Subject.Builder setOrganizationBytes(com.google.protobuf.ByteString value)
The organization of the subject.
string organization = 2;
- 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 = 3;
- Specified by:
getOrganizationalUnit
in interfaceSubjectOrBuilder
- Returns:
- The organizationalUnit.
-
getOrganizationalUnitBytes
public com.google.protobuf.ByteString getOrganizationalUnitBytes()
The organizational_unit of the subject.
string organizational_unit = 3;
- Specified by:
getOrganizationalUnitBytes
in interfaceSubjectOrBuilder
- Returns:
- The bytes for organizationalUnit.
-
setOrganizationalUnit
public Subject.Builder setOrganizationalUnit(String value)
The organizational_unit of the subject.
string organizational_unit = 3;
- 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 = 3;
- Returns:
- This builder for chaining.
-
setOrganizationalUnitBytes
public Subject.Builder setOrganizationalUnitBytes(com.google.protobuf.ByteString value)
The organizational_unit of the subject.
string organizational_unit = 3;
- 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 = 4;
- Specified by:
getLocality
in interfaceSubjectOrBuilder
- Returns:
- The locality.
-
getLocalityBytes
public com.google.protobuf.ByteString getLocalityBytes()
The locality or city of the subject.
string locality = 4;
- Specified by:
getLocalityBytes
in interfaceSubjectOrBuilder
- Returns:
- The bytes for locality.
-
setLocality
public Subject.Builder setLocality(String value)
The locality or city of the subject.
string locality = 4;
- 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 = 4;
- Returns:
- This builder for chaining.
-
setLocalityBytes
public Subject.Builder setLocalityBytes(com.google.protobuf.ByteString value)
The locality or city of the subject.
string locality = 4;
- 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 = 5;
- Specified by:
getProvince
in interfaceSubjectOrBuilder
- Returns:
- The province.
-
getProvinceBytes
public com.google.protobuf.ByteString getProvinceBytes()
The province, territory, or regional state of the subject.
string province = 5;
- Specified by:
getProvinceBytes
in interfaceSubjectOrBuilder
- Returns:
- The bytes for province.
-
setProvince
public Subject.Builder setProvince(String value)
The province, territory, or regional state of the subject.
string province = 5;
- 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 = 5;
- 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 = 5;
- 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 = 6;
- Specified by:
getStreetAddress
in interfaceSubjectOrBuilder
- Returns:
- The streetAddress.
-
getStreetAddressBytes
public com.google.protobuf.ByteString getStreetAddressBytes()
The street address of the subject.
string street_address = 6;
- Specified by:
getStreetAddressBytes
in interfaceSubjectOrBuilder
- Returns:
- The bytes for streetAddress.
-
setStreetAddress
public Subject.Builder setStreetAddress(String value)
The street address of the subject.
string street_address = 6;
- 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 = 6;
- Returns:
- This builder for chaining.
-
setStreetAddressBytes
public Subject.Builder setStreetAddressBytes(com.google.protobuf.ByteString value)
The street address of the subject.
string street_address = 6;
- 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 = 7;
- Specified by:
getPostalCode
in interfaceSubjectOrBuilder
- Returns:
- The postalCode.
-
getPostalCodeBytes
public com.google.protobuf.ByteString getPostalCodeBytes()
The postal code of the subject.
string postal_code = 7;
- Specified by:
getPostalCodeBytes
in interfaceSubjectOrBuilder
- Returns:
- The bytes for postalCode.
-
setPostalCode
public Subject.Builder setPostalCode(String value)
The postal code of the subject.
string postal_code = 7;
- 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 = 7;
- Returns:
- This builder for chaining.
-
setPostalCodeBytes
public Subject.Builder setPostalCodeBytes(com.google.protobuf.ByteString value)
The postal code of the subject.
string postal_code = 7;
- Parameters:
value
- The bytes for postalCode to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Subject.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subject.Builder>
-
mergeUnknownFields
public final Subject.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Subject.Builder>
-
-