Class ContactInfo.Builder (0.47.0)

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

Contact information of stakeholders.

Protobuf type google.cloud.apphub.v1.ContactInfo

Static Methods

getDescriptor()

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

Methods

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()

Optional. Contact's name. Can have a maximum length of 63 characters.

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

clearEmail()

public ContactInfo.Builder clearEmail()

Required. Email address of the contacts.

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

Returns
Type Description
ContactInfo.Builder

This builder for chaining.

getDefaultInstanceForType()

public ContactInfo getDefaultInstanceForType()
Returns
Type Description
ContactInfo

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Optional. Contact's name. Can have a maximum length of 63 characters.

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Optional. Contact's name. Can have a maximum length of 63 characters.

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getEmail()

public String getEmail()

Required. Email address of the contacts.

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

Returns
Type Description
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

Required. Email address of the contacts.

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

Returns
Type Description
ByteString

The bytes for email.

internalGetFieldAccessorTable()

protected GeneratedMessage.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

setDisplayName(String value)

public ContactInfo.Builder setDisplayName(String value)

Optional. Contact's name. Can have a maximum length of 63 characters.

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

Optional. Contact's name. Can have a maximum length of 63 characters.

string display_name = 1 [(.google.api.field_behavior) = OPTIONAL];

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)

Required. Email address of the contacts.

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

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)

Required. Email address of the contacts.

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

Parameter
Name Description
value ByteString

The bytes for email to set.

Returns
Type Description
ContactInfo.Builder

This builder for chaining.