public static final class ContactInfo.Builder extends GeneratedMessage.Builder<ContactInfo.Builder> implements ContactInfoOrBuilderContact information of stakeholders.
Protobuf type google.cloud.apphub.v1.ContactInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ContactInfo.BuilderImplements
ContactInfoOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ContactInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ContactInfo.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe bytes for email to set. |
| Returns | |
|---|---|
| Type | Description |
ContactInfo.Builder |
This builder for chaining. |