Class Subject.Builder (2.46.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.v1beta1.Subject

Implements

SubjectOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Subject.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Subject.Builder
Overrides

build()

public Subject build()
Returns
Type Description
Subject

buildPartial()

public Subject buildPartial()
Returns
Type Description
Subject

clear()

public Subject.Builder clear()
Returns
Type Description
Subject.Builder
Overrides

clearCountryCode()

public Subject.Builder clearCountryCode()

The country code of the subject.

string country_code = 1;

Returns
Type Description
Subject.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Subject.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Subject.Builder
Overrides

clearLocality()

public Subject.Builder clearLocality()

The locality or city of the subject.

string locality = 4;

Returns
Type Description
Subject.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Subject.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Subject.Builder
Overrides

clearOrganization()

public Subject.Builder clearOrganization()

The organization of the subject.

string organization = 2;

Returns
Type Description
Subject.Builder

This builder for chaining.

clearOrganizationalUnit()

public Subject.Builder clearOrganizationalUnit()

The organizational_unit of the subject.

string organizational_unit = 3;

Returns
Type Description
Subject.Builder

This builder for chaining.

clearPostalCode()

public Subject.Builder clearPostalCode()

The postal code of the subject.

string postal_code = 7;

Returns
Type Description
Subject.Builder

This builder for chaining.

clearProvince()

public Subject.Builder clearProvince()

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

string province = 5;

Returns
Type Description
Subject.Builder

This builder for chaining.

clearStreetAddress()

public Subject.Builder clearStreetAddress()

The street address of the subject.

string street_address = 6;

Returns
Type Description
Subject.Builder

This builder for chaining.

clone()

public Subject.Builder clone()
Returns
Type Description
Subject.Builder
Overrides

getCountryCode()

public String getCountryCode()

The country code of the subject.

string country_code = 1;

Returns
Type Description
String

The countryCode.

getCountryCodeBytes()

public ByteString getCountryCodeBytes()

The country code of the subject.

string country_code = 1;

Returns
Type Description
ByteString

The bytes for countryCode.

getDefaultInstanceForType()

public Subject getDefaultInstanceForType()
Returns
Type Description
Subject

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLocality()

public String getLocality()

The locality or city of the subject.

string locality = 4;

Returns
Type Description
String

The locality.

getLocalityBytes()

public ByteString getLocalityBytes()

The locality or city of the subject.

string locality = 4;

Returns
Type Description
ByteString

The bytes for locality.

getOrganization()

public String getOrganization()

The organization of the subject.

string organization = 2;

Returns
Type Description
String

The organization.

getOrganizationBytes()

public ByteString getOrganizationBytes()

The organization of the subject.

string organization = 2;

Returns
Type Description
ByteString

The bytes for organization.

getOrganizationalUnit()

public String getOrganizationalUnit()

The organizational_unit of the subject.

string organizational_unit = 3;

Returns
Type Description
String

The organizationalUnit.

getOrganizationalUnitBytes()

public ByteString getOrganizationalUnitBytes()

The organizational_unit of the subject.

string organizational_unit = 3;

Returns
Type Description
ByteString

The bytes for organizationalUnit.

getPostalCode()

public String getPostalCode()

The postal code of the subject.

string postal_code = 7;

Returns
Type Description
String

The postalCode.

getPostalCodeBytes()

public ByteString getPostalCodeBytes()

The postal code of the subject.

string postal_code = 7;

Returns
Type Description
ByteString

The bytes for postalCode.

getProvince()

public String getProvince()

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

string province = 5;

Returns
Type Description
String

The province.

getProvinceBytes()

public ByteString getProvinceBytes()

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

string province = 5;

Returns
Type Description
ByteString

The bytes for province.

getStreetAddress()

public String getStreetAddress()

The street address of the subject.

string street_address = 6;

Returns
Type Description
String

The streetAddress.

getStreetAddressBytes()

public ByteString getStreetAddressBytes()

The street address of the subject.

string street_address = 6;

Returns
Type Description
ByteString

The bytes for streetAddress.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Subject other)

public Subject.Builder mergeFrom(Subject other)
Parameter
Name Description
other Subject
Returns
Type Description
Subject.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Subject.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Subject.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Subject.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Subject.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Subject.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Subject.Builder
Overrides

setCountryCode(String value)

public Subject.Builder setCountryCode(String value)

The country code of the subject.

string country_code = 1;

Parameter
Name Description
value String

The countryCode to set.

Returns
Type Description
Subject.Builder

This builder for chaining.

setCountryCodeBytes(ByteString value)

public Subject.Builder setCountryCodeBytes(ByteString value)

The country code of the subject.

string country_code = 1;

Parameter
Name Description
value ByteString

The bytes for countryCode to set.

Returns
Type Description
Subject.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Subject.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Subject.Builder
Overrides

setLocality(String value)

public Subject.Builder setLocality(String value)

The locality or city of the subject.

string locality = 4;

Parameter
Name Description
value String

The locality to set.

Returns
Type Description
Subject.Builder

This builder for chaining.

setLocalityBytes(ByteString value)

public Subject.Builder setLocalityBytes(ByteString value)

The locality or city of the subject.

string locality = 4;

Parameter
Name Description
value ByteString

The bytes for locality to set.

Returns
Type Description
Subject.Builder

This builder for chaining.

setOrganization(String value)

public Subject.Builder setOrganization(String value)

The organization of the subject.

string organization = 2;

Parameter
Name Description
value String

The organization to set.

Returns
Type Description
Subject.Builder

This builder for chaining.

setOrganizationBytes(ByteString value)

public Subject.Builder setOrganizationBytes(ByteString value)

The organization of the subject.

string organization = 2;

Parameter
Name Description
value ByteString

The bytes for organization to set.

Returns
Type Description
Subject.Builder

This builder for chaining.

setOrganizationalUnit(String value)

public Subject.Builder setOrganizationalUnit(String value)

The organizational_unit of the subject.

string organizational_unit = 3;

Parameter
Name Description
value String

The organizationalUnit to set.

Returns
Type Description
Subject.Builder

This builder for chaining.

setOrganizationalUnitBytes(ByteString value)

public Subject.Builder setOrganizationalUnitBytes(ByteString value)

The organizational_unit of the subject.

string organizational_unit = 3;

Parameter
Name Description
value ByteString

The bytes for organizationalUnit to set.

Returns
Type Description
Subject.Builder

This builder for chaining.

setPostalCode(String value)

public Subject.Builder setPostalCode(String value)

The postal code of the subject.

string postal_code = 7;

Parameter
Name Description
value String

The postalCode to set.

Returns
Type Description
Subject.Builder

This builder for chaining.

setPostalCodeBytes(ByteString value)

public Subject.Builder setPostalCodeBytes(ByteString value)

The postal code of the subject.

string postal_code = 7;

Parameter
Name Description
value ByteString

The bytes for postalCode to set.

Returns
Type Description
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 = 5;

Parameter
Name Description
value String

The province to set.

Returns
Type Description
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 = 5;

Parameter
Name Description
value ByteString

The bytes for province to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Subject.Builder
Overrides

setStreetAddress(String value)

public Subject.Builder setStreetAddress(String value)

The street address of the subject.

string street_address = 6;

Parameter
Name Description
value String

The streetAddress to set.

Returns
Type Description
Subject.Builder

This builder for chaining.

setStreetAddressBytes(ByteString value)

public Subject.Builder setStreetAddressBytes(ByteString value)

The street address of the subject.

string street_address = 6;

Parameter
Name Description
value ByteString

The bytes for streetAddress to set.

Returns
Type Description
Subject.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Subject.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Subject.Builder
Overrides