Class AddressInfo.Builder (0.1.0)

public static final class AddressInfo.Builder extends GeneratedMessageV3.Builder<AddressInfo.Builder> implements AddressInfoOrBuilder

Address information for the user.

Protobuf type google.ads.datamanager.v1.AddressInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AddressInfo build()
Returns
Type Description
AddressInfo

buildPartial()

public AddressInfo buildPartial()
Returns
Type Description
AddressInfo

clear()

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

clearFamilyName()

public AddressInfo.Builder clearFamilyName()

Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

string family_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddressInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGivenName()

public AddressInfo.Builder clearGivenName()

Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

string given_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddressInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPostalCode()

public AddressInfo.Builder clearPostalCode()

Required. The postal code of the user's address.

string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddressInfo.Builder

This builder for chaining.

clearRegionCode()

public AddressInfo.Builder clearRegionCode()

Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.

string region_code = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AddressInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public AddressInfo getDefaultInstanceForType()
Returns
Type Description
AddressInfo

getDescriptorForType()

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

getFamilyName()

public String getFamilyName()

Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

string family_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The familyName.

getFamilyNameBytes()

public ByteString getFamilyNameBytes()

Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

string family_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for familyName.

getGivenName()

public String getGivenName()

Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

string given_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The givenName.

getGivenNameBytes()

public ByteString getGivenNameBytes()

Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

string given_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for givenName.

getPostalCode()

public String getPostalCode()

Required. The postal code of the user's address.

string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The postalCode.

getPostalCodeBytes()

public ByteString getPostalCodeBytes()

Required. The postal code of the user's address.

string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for postalCode.

getRegionCode()

public String getRegionCode()

Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.

string region_code = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.

string region_code = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for regionCode.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AddressInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setFamilyName(String value)

public AddressInfo.Builder setFamilyName(String value)

Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

string family_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The familyName to set.

Returns
Type Description
AddressInfo.Builder

This builder for chaining.

setFamilyNameBytes(ByteString value)

public AddressInfo.Builder setFamilyNameBytes(ByteString value)

Required. Family (last) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

string family_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for familyName to set.

Returns
Type Description
AddressInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGivenName(String value)

public AddressInfo.Builder setGivenName(String value)

Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

string given_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The givenName to set.

Returns
Type Description
AddressInfo.Builder

This builder for chaining.

setGivenNameBytes(ByteString value)

public AddressInfo.Builder setGivenNameBytes(ByteString value)

Required. Given (first) name of the user, all lowercase, with no punctuation, no leading or trailing whitespace, and hashed as SHA-256.

string given_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for givenName to set.

Returns
Type Description
AddressInfo.Builder

This builder for chaining.

setPostalCode(String value)

public AddressInfo.Builder setPostalCode(String value)

Required. The postal code of the user's address.

string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The postalCode to set.

Returns
Type Description
AddressInfo.Builder

This builder for chaining.

setPostalCodeBytes(ByteString value)

public AddressInfo.Builder setPostalCodeBytes(ByteString value)

Required. The postal code of the user's address.

string postal_code = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for postalCode to set.

Returns
Type Description
AddressInfo.Builder

This builder for chaining.

setRegionCode(String value)

public AddressInfo.Builder setRegionCode(String value)

Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.

string region_code = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The regionCode to set.

Returns
Type Description
AddressInfo.Builder

This builder for chaining.

setRegionCodeBytes(ByteString value)

public AddressInfo.Builder setRegionCodeBytes(ByteString value)

Required. The 2-letter region code in ISO-3166-1 alpha-2 of the user's address.

string region_code = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for regionCode to set.

Returns
Type Description
AddressInfo.Builder

This builder for chaining.

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

public AddressInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AddressInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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