Class ContactInfo.Builder (3.25.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ContactInfo build()
Returns
TypeDescription
ContactInfo

buildPartial()

public ContactInfo buildPartial()
Returns
TypeDescription
ContactInfo

clear()

public ContactInfo.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ContactInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFirstName()

public ContactInfo.Builder clearFirstName()

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

string first_name = 1;

Returns
TypeDescription
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
TypeDescription
ContactInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhone()

public ContactInfo.Builder clearPhone()

The customer account's contact phone number.

string phone = 7;

Returns
TypeDescription
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
TypeDescription
ContactInfo.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ContactInfo getDefaultInstanceForType()
Returns
TypeDescription
ContactInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The firstName.

getFirstNameBytes()

public ByteString getFirstNameBytes()

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

string first_name = 1;

Returns
TypeDescription
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
TypeDescription
String

The lastName.

getLastNameBytes()

public ByteString getLastNameBytes()

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

string last_name = 2;

Returns
TypeDescription
ByteString

The bytes for lastName.

getPhone()

public String getPhone()

The customer account's contact phone number.

string phone = 7;

Returns
TypeDescription
String

The phone.

getPhoneBytes()

public ByteString getPhoneBytes()

The customer account's contact phone number.

string phone = 7;

Returns
TypeDescription
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
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Optional. The customer account contact's job title.

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

Returns
TypeDescription
ByteString

The bytes for title.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ContactInfo other)

public ContactInfo.Builder mergeFrom(ContactInfo other)
Parameter
NameDescription
otherContactInfo
Returns
TypeDescription
ContactInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContactInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
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
NameDescription
valueString

The email to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for email to set.

Returns
TypeDescription
ContactInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ContactInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The firstName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for firstName to set.

Returns
TypeDescription
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
NameDescription
valueString

The lastName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for lastName to set.

Returns
TypeDescription
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
NameDescription
valueString

The phone to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for phone to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The title to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
ContactInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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