Class ContactInfo.Builder (0.15.0)

public static final class ContactInfo.Builder extends GeneratedMessageV3.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

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

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

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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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