Class ContactInfo.Builder (0.3.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
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()

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

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

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

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

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

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

The bytes for displayName.

getEmail()

public String getEmail()

Required. Email address of the contacts.

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

Returns
TypeDescription
String

The email.

getEmailBytes()

public ByteString getEmailBytes()

Required. Email address of the contacts.

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

Returns
TypeDescription
ByteString

The bytes for email.

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)

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

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

Parameter
NameDescription
valueString

The displayName to set.

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

Required. Email address of the contacts.

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

Parameter
NameDescription
valueString

The email to set.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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