Class ContactInfo.Builder (3.46.0)

public static final class ContactInfo.Builder extends GeneratedMessageV3.Builder<ContactInfo.Builder> implements ContactInfoOrBuilder

Contact information for a customer account.

Protobuf type google.cloud.channel.v1.ContactInfo

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContactInfo build()
Returns
Type Description
ContactInfo

buildPartial()

public ContactInfo buildPartial()
Returns
Type Description
ContactInfo

clear()

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

clearDisplayName()

public ContactInfo.Builder clearDisplayName()

Output only. The customer account contact's display name, formatted as a combination of the customer's first and last name.

string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

clearEmail()

public ContactInfo.Builder clearEmail()

The customer account's contact email. Required for entitlements that create admin.google.com accounts, and serves as the customer's username for those accounts. Use this email to invite Team customers.

string email = 5;

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFirstName()

public ContactInfo.Builder clearFirstName()

The customer account contact's first name. Optional for Team customers.

string first_name = 1;

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

clearLastName()

public ContactInfo.Builder clearLastName()

The customer account contact's last name. Optional for Team customers.

string last_name = 2;

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhone()

public ContactInfo.Builder clearPhone()

The customer account's contact phone number.

string phone = 7;

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

clearTitle()

public ContactInfo.Builder clearTitle()

Optional. The customer account contact's job title.

string title = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ContactInfo getDefaultInstanceForType()
Returns
Type Description
ContactInfo

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Output only. The customer account contact's display name, formatted as a combination of the customer's first and last name.

string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. The customer account contact's display name, formatted as a combination of the customer's first and last name.

string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for displayName.

getEmail()

public String getEmail()

The customer account's contact email. Required for entitlements that create admin.google.com accounts, and serves as the customer's username for those accounts. Use this email to invite Team customers.

string email = 5;

Returns
Type Description
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

The customer account's contact email. Required for entitlements that create admin.google.com accounts, and serves as the customer's username for those accounts. Use this email to invite Team customers.

string email = 5;

Returns
Type Description
ByteString

The bytes for email.

getFirstName()

public String getFirstName()

The customer account contact's first name. Optional for Team customers.

string first_name = 1;

Returns
Type Description
String

The firstName.

getFirstNameBytes()

public ByteString getFirstNameBytes()

The customer account contact's first name. Optional for Team customers.

string first_name = 1;

Returns
Type Description
ByteString

The bytes for firstName.

getLastName()

public String getLastName()

The customer account contact's last name. Optional for Team customers.

string last_name = 2;

Returns
Type Description
String

The lastName.

getLastNameBytes()

public ByteString getLastNameBytes()

The customer account contact's last name. Optional for Team customers.

string last_name = 2;

Returns
Type Description
ByteString

The bytes for lastName.

getPhone()

public String getPhone()

The customer account's contact phone number.

string phone = 7;

Returns
Type Description
String

The phone.

getPhoneBytes()

public ByteString getPhoneBytes()

The customer account's contact phone number.

string phone = 7;

Returns
Type Description
ByteString

The bytes for phone.

getTitle()

public String getTitle()

Optional. The customer account contact's job title.

string title = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Optional. The customer account contact's job title.

string title = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for title.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContactInfo other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDisplayName(String value)

public ContactInfo.Builder setDisplayName(String value)

Output only. The customer account contact's display name, formatted as a combination of the customer's first and last name.

string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ContactInfo.Builder setDisplayNameBytes(ByteString value)

Output only. The customer account contact's display name, formatted as a combination of the customer's first and last name.

string display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

setEmail(String value)

public ContactInfo.Builder setEmail(String value)

The customer account's contact email. Required for entitlements that create admin.google.com accounts, and serves as the customer's username for those accounts. Use this email to invite Team customers.

string email = 5;

Parameter
Name Description
value String

The email to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

setEmailBytes(ByteString value)

public ContactInfo.Builder setEmailBytes(ByteString value)

The customer account's contact email. Required for entitlements that create admin.google.com accounts, and serves as the customer's username for those accounts. Use this email to invite Team customers.

string email = 5;

Parameter
Name Description
value ByteString

The bytes for email to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFirstName(String value)

public ContactInfo.Builder setFirstName(String value)

The customer account contact's first name. Optional for Team customers.

string first_name = 1;

Parameter
Name Description
value String

The firstName to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

setFirstNameBytes(ByteString value)

public ContactInfo.Builder setFirstNameBytes(ByteString value)

The customer account contact's first name. Optional for Team customers.

string first_name = 1;

Parameter
Name Description
value ByteString

The bytes for firstName to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

setLastName(String value)

public ContactInfo.Builder setLastName(String value)

The customer account contact's last name. Optional for Team customers.

string last_name = 2;

Parameter
Name Description
value String

The lastName to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

setLastNameBytes(ByteString value)

public ContactInfo.Builder setLastNameBytes(ByteString value)

The customer account contact's last name. Optional for Team customers.

string last_name = 2;

Parameter
Name Description
value ByteString

The bytes for lastName to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

setPhone(String value)

public ContactInfo.Builder setPhone(String value)

The customer account's contact phone number.

string phone = 7;

Parameter
Name Description
value String

The phone to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

setPhoneBytes(ByteString value)

public ContactInfo.Builder setPhoneBytes(ByteString value)

The customer account's contact phone number.

string phone = 7;

Parameter
Name Description
value ByteString

The bytes for phone to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

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

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

setTitle(String value)

public ContactInfo.Builder setTitle(String value)

Optional. The customer account contact's job title.

string title = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The title to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public ContactInfo.Builder setTitleBytes(ByteString value)

Optional. The customer account contact's job title.

string title = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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