Class Subject.Builder (2.16.0)

public static final class Subject.Builder extends GeneratedMessageV3.Builder<Subject.Builder> implements SubjectOrBuilder

Subject describes parts of a distinguished name that, in turn, describes the subject of the certificate.

Protobuf type google.cloud.security.privateca.v1.Subject

Implements

SubjectOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Subject.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Subject.Builder
Overrides

build()

public Subject build()
Returns
TypeDescription
Subject

buildPartial()

public Subject buildPartial()
Returns
TypeDescription
Subject

clear()

public Subject.Builder clear()
Returns
TypeDescription
Subject.Builder
Overrides

clearCommonName()

public Subject.Builder clearCommonName()

The "common name" of the subject.

string common_name = 1;

Returns
TypeDescription
Subject.Builder

This builder for chaining.

clearCountryCode()

public Subject.Builder clearCountryCode()

The country code of the subject.

string country_code = 2;

Returns
TypeDescription
Subject.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Subject.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Subject.Builder
Overrides

clearLocality()

public Subject.Builder clearLocality()

The locality or city of the subject.

string locality = 5;

Returns
TypeDescription
Subject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Subject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Subject.Builder
Overrides

clearOrganization()

public Subject.Builder clearOrganization()

The organization of the subject.

string organization = 3;

Returns
TypeDescription
Subject.Builder

This builder for chaining.

clearOrganizationalUnit()

public Subject.Builder clearOrganizationalUnit()

The organizational_unit of the subject.

string organizational_unit = 4;

Returns
TypeDescription
Subject.Builder

This builder for chaining.

clearPostalCode()

public Subject.Builder clearPostalCode()

The postal code of the subject.

string postal_code = 8;

Returns
TypeDescription
Subject.Builder

This builder for chaining.

clearProvince()

public Subject.Builder clearProvince()

The province, territory, or regional state of the subject.

string province = 6;

Returns
TypeDescription
Subject.Builder

This builder for chaining.

clearStreetAddress()

public Subject.Builder clearStreetAddress()

The street address of the subject.

string street_address = 7;

Returns
TypeDescription
Subject.Builder

This builder for chaining.

clone()

public Subject.Builder clone()
Returns
TypeDescription
Subject.Builder
Overrides

getCommonName()

public String getCommonName()

The "common name" of the subject.

string common_name = 1;

Returns
TypeDescription
String

The commonName.

getCommonNameBytes()

public ByteString getCommonNameBytes()

The "common name" of the subject.

string common_name = 1;

Returns
TypeDescription
ByteString

The bytes for commonName.

getCountryCode()

public String getCountryCode()

The country code of the subject.

string country_code = 2;

Returns
TypeDescription
String

The countryCode.

getCountryCodeBytes()

public ByteString getCountryCodeBytes()

The country code of the subject.

string country_code = 2;

Returns
TypeDescription
ByteString

The bytes for countryCode.

getDefaultInstanceForType()

public Subject getDefaultInstanceForType()
Returns
TypeDescription
Subject

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocality()

public String getLocality()

The locality or city of the subject.

string locality = 5;

Returns
TypeDescription
String

The locality.

getLocalityBytes()

public ByteString getLocalityBytes()

The locality or city of the subject.

string locality = 5;

Returns
TypeDescription
ByteString

The bytes for locality.

getOrganization()

public String getOrganization()

The organization of the subject.

string organization = 3;

Returns
TypeDescription
String

The organization.

getOrganizationBytes()

public ByteString getOrganizationBytes()

The organization of the subject.

string organization = 3;

Returns
TypeDescription
ByteString

The bytes for organization.

getOrganizationalUnit()

public String getOrganizationalUnit()

The organizational_unit of the subject.

string organizational_unit = 4;

Returns
TypeDescription
String

The organizationalUnit.

getOrganizationalUnitBytes()

public ByteString getOrganizationalUnitBytes()

The organizational_unit of the subject.

string organizational_unit = 4;

Returns
TypeDescription
ByteString

The bytes for organizationalUnit.

getPostalCode()

public String getPostalCode()

The postal code of the subject.

string postal_code = 8;

Returns
TypeDescription
String

The postalCode.

getPostalCodeBytes()

public ByteString getPostalCodeBytes()

The postal code of the subject.

string postal_code = 8;

Returns
TypeDescription
ByteString

The bytes for postalCode.

getProvince()

public String getProvince()

The province, territory, or regional state of the subject.

string province = 6;

Returns
TypeDescription
String

The province.

getProvinceBytes()

public ByteString getProvinceBytes()

The province, territory, or regional state of the subject.

string province = 6;

Returns
TypeDescription
ByteString

The bytes for province.

getStreetAddress()

public String getStreetAddress()

The street address of the subject.

string street_address = 7;

Returns
TypeDescription
String

The streetAddress.

getStreetAddressBytes()

public ByteString getStreetAddressBytes()

The street address of the subject.

string street_address = 7;

Returns
TypeDescription
ByteString

The bytes for streetAddress.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Subject other)

public Subject.Builder mergeFrom(Subject other)
Parameter
NameDescription
otherSubject
Returns
TypeDescription
Subject.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Subject.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Subject.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Subject.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Subject.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Subject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Subject.Builder
Overrides

setCommonName(String value)

public Subject.Builder setCommonName(String value)

The "common name" of the subject.

string common_name = 1;

Parameter
NameDescription
valueString

The commonName to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setCommonNameBytes(ByteString value)

public Subject.Builder setCommonNameBytes(ByteString value)

The "common name" of the subject.

string common_name = 1;

Parameter
NameDescription
valueByteString

The bytes for commonName to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setCountryCode(String value)

public Subject.Builder setCountryCode(String value)

The country code of the subject.

string country_code = 2;

Parameter
NameDescription
valueString

The countryCode to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setCountryCodeBytes(ByteString value)

public Subject.Builder setCountryCodeBytes(ByteString value)

The country code of the subject.

string country_code = 2;

Parameter
NameDescription
valueByteString

The bytes for countryCode to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Subject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Subject.Builder
Overrides

setLocality(String value)

public Subject.Builder setLocality(String value)

The locality or city of the subject.

string locality = 5;

Parameter
NameDescription
valueString

The locality to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setLocalityBytes(ByteString value)

public Subject.Builder setLocalityBytes(ByteString value)

The locality or city of the subject.

string locality = 5;

Parameter
NameDescription
valueByteString

The bytes for locality to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setOrganization(String value)

public Subject.Builder setOrganization(String value)

The organization of the subject.

string organization = 3;

Parameter
NameDescription
valueString

The organization to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setOrganizationBytes(ByteString value)

public Subject.Builder setOrganizationBytes(ByteString value)

The organization of the subject.

string organization = 3;

Parameter
NameDescription
valueByteString

The bytes for organization to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setOrganizationalUnit(String value)

public Subject.Builder setOrganizationalUnit(String value)

The organizational_unit of the subject.

string organizational_unit = 4;

Parameter
NameDescription
valueString

The organizationalUnit to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setOrganizationalUnitBytes(ByteString value)

public Subject.Builder setOrganizationalUnitBytes(ByteString value)

The organizational_unit of the subject.

string organizational_unit = 4;

Parameter
NameDescription
valueByteString

The bytes for organizationalUnit to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setPostalCode(String value)

public Subject.Builder setPostalCode(String value)

The postal code of the subject.

string postal_code = 8;

Parameter
NameDescription
valueString

The postalCode to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setPostalCodeBytes(ByteString value)

public Subject.Builder setPostalCodeBytes(ByteString value)

The postal code of the subject.

string postal_code = 8;

Parameter
NameDescription
valueByteString

The bytes for postalCode to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setProvince(String value)

public Subject.Builder setProvince(String value)

The province, territory, or regional state of the subject.

string province = 6;

Parameter
NameDescription
valueString

The province to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setProvinceBytes(ByteString value)

public Subject.Builder setProvinceBytes(ByteString value)

The province, territory, or regional state of the subject.

string province = 6;

Parameter
NameDescription
valueByteString

The bytes for province to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Subject.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Subject.Builder
Overrides

setStreetAddress(String value)

public Subject.Builder setStreetAddress(String value)

The street address of the subject.

string street_address = 7;

Parameter
NameDescription
valueString

The streetAddress to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setStreetAddressBytes(ByteString value)

public Subject.Builder setStreetAddressBytes(ByteString value)

The street address of the subject.

string street_address = 7;

Parameter
NameDescription
valueByteString

The bytes for streetAddress to set.

Returns
TypeDescription
Subject.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Subject.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Subject.Builder
Overrides