Package com.google.cloud.channel.v1
Class ContactInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
- com.google.cloud.channel.v1.ContactInfo.Builder
-
- All Implemented Interfaces:
ContactInfoOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ContactInfo
public static final class ContactInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder> implements ContactInfoOrBuilder
Contact information for a customer account.
Protobuf typegoogle.cloud.channel.v1.ContactInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContactInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ContactInfo
build()
ContactInfo
buildPartial()
ContactInfo.Builder
clear()
ContactInfo.Builder
clearDisplayName()
Output only.ContactInfo.Builder
clearEmail()
The customer account's contact email.ContactInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ContactInfo.Builder
clearFirstName()
The customer account contact's first name.ContactInfo.Builder
clearLastName()
The customer account contact's last name.ContactInfo.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ContactInfo.Builder
clearPhone()
The customer account's contact phone number.ContactInfo.Builder
clearTitle()
Optional.ContactInfo.Builder
clone()
ContactInfo
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
Output only.com.google.protobuf.ByteString
getDisplayNameBytes()
Output only.String
getEmail()
The customer account's contact email.com.google.protobuf.ByteString
getEmailBytes()
The customer account's contact email.String
getFirstName()
The customer account contact's first name.com.google.protobuf.ByteString
getFirstNameBytes()
The customer account contact's first name.String
getLastName()
The customer account contact's last name.com.google.protobuf.ByteString
getLastNameBytes()
The customer account contact's last name.String
getPhone()
The customer account's contact phone number.com.google.protobuf.ByteString
getPhoneBytes()
The customer account's contact phone number.String
getTitle()
Optional.com.google.protobuf.ByteString
getTitleBytes()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ContactInfo.Builder
mergeFrom(ContactInfo other)
ContactInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ContactInfo.Builder
mergeFrom(com.google.protobuf.Message other)
ContactInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ContactInfo.Builder
setDisplayName(String value)
Output only.ContactInfo.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Output only.ContactInfo.Builder
setEmail(String value)
The customer account's contact email.ContactInfo.Builder
setEmailBytes(com.google.protobuf.ByteString value)
The customer account's contact email.ContactInfo.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ContactInfo.Builder
setFirstName(String value)
The customer account contact's first name.ContactInfo.Builder
setFirstNameBytes(com.google.protobuf.ByteString value)
The customer account contact's first name.ContactInfo.Builder
setLastName(String value)
The customer account contact's last name.ContactInfo.Builder
setLastNameBytes(com.google.protobuf.ByteString value)
The customer account contact's last name.ContactInfo.Builder
setPhone(String value)
The customer account's contact phone number.ContactInfo.Builder
setPhoneBytes(com.google.protobuf.ByteString value)
The customer account's contact phone number.ContactInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ContactInfo.Builder
setTitle(String value)
Optional.ContactInfo.Builder
setTitleBytes(com.google.protobuf.ByteString value)
Optional.ContactInfo.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
clear
public ContactInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
getDefaultInstanceForType
public ContactInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ContactInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ContactInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ContactInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
setField
public ContactInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
clearField
public ContactInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
clearOneof
public ContactInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
setRepeatedField
public ContactInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
addRepeatedField
public ContactInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
mergeFrom
public ContactInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ContactInfo.Builder>
-
mergeFrom
public ContactInfo.Builder mergeFrom(ContactInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
mergeFrom
public ContactInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ContactInfo.Builder>
- Throws:
IOException
-
getFirstName
public String getFirstName()
The customer account contact's first name. Optional for Team customers.
string first_name = 1;
- Specified by:
getFirstName
in interfaceContactInfoOrBuilder
- Returns:
- The firstName.
-
getFirstNameBytes
public com.google.protobuf.ByteString getFirstNameBytes()
The customer account contact's first name. Optional for Team customers.
string first_name = 1;
- Specified by:
getFirstNameBytes
in interfaceContactInfoOrBuilder
- Returns:
- The bytes for firstName.
-
setFirstName
public ContactInfo.Builder setFirstName(String value)
The customer account contact's first name. Optional for Team customers.
string first_name = 1;
- Parameters:
value
- The firstName to set.- Returns:
- This builder for chaining.
-
clearFirstName
public ContactInfo.Builder clearFirstName()
The customer account contact's first name. Optional for Team customers.
string first_name = 1;
- Returns:
- This builder for chaining.
-
setFirstNameBytes
public ContactInfo.Builder setFirstNameBytes(com.google.protobuf.ByteString value)
The customer account contact's first name. Optional for Team customers.
string first_name = 1;
- Parameters:
value
- The bytes for firstName to set.- Returns:
- This builder for chaining.
-
getLastName
public String getLastName()
The customer account contact's last name. Optional for Team customers.
string last_name = 2;
- Specified by:
getLastName
in interfaceContactInfoOrBuilder
- Returns:
- The lastName.
-
getLastNameBytes
public com.google.protobuf.ByteString getLastNameBytes()
The customer account contact's last name. Optional for Team customers.
string last_name = 2;
- Specified by:
getLastNameBytes
in interfaceContactInfoOrBuilder
- Returns:
- The bytes for lastName.
-
setLastName
public ContactInfo.Builder setLastName(String value)
The customer account contact's last name. Optional for Team customers.
string last_name = 2;
- Parameters:
value
- The lastName to set.- Returns:
- 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:
- This builder for chaining.
-
setLastNameBytes
public ContactInfo.Builder setLastNameBytes(com.google.protobuf.ByteString value)
The customer account contact's last name. Optional for Team customers.
string last_name = 2;
- Parameters:
value
- The bytes for lastName to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getDisplayName
in interfaceContactInfoOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.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];
- Specified by:
getDisplayNameBytes
in interfaceContactInfoOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
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];
- Parameters:
value
- The displayName to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDisplayNameBytes
public ContactInfo.Builder setDisplayNameBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getEmail
in interfaceContactInfoOrBuilder
- Returns:
- The email.
-
getEmailBytes
public com.google.protobuf.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;
- Specified by:
getEmailBytes
in interfaceContactInfoOrBuilder
- Returns:
- The bytes for email.
-
setEmail
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;
- Parameters:
value
- The email to set.- Returns:
- 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:
- This builder for chaining.
-
setEmailBytes
public ContactInfo.Builder setEmailBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for email to set.- Returns:
- This builder for chaining.
-
getTitle
public String getTitle()
Optional. The customer account contact's job title.
string title = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTitle
in interfaceContactInfoOrBuilder
- Returns:
- The title.
-
getTitleBytes
public com.google.protobuf.ByteString getTitleBytes()
Optional. The customer account contact's job title.
string title = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTitleBytes
in interfaceContactInfoOrBuilder
- Returns:
- The bytes for title.
-
setTitle
public ContactInfo.Builder setTitle(String value)
Optional. The customer account contact's job title.
string title = 6 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The title to set.- Returns:
- 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:
- This builder for chaining.
-
setTitleBytes
public ContactInfo.Builder setTitleBytes(com.google.protobuf.ByteString value)
Optional. The customer account contact's job title.
string title = 6 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for title to set.- Returns:
- This builder for chaining.
-
getPhone
public String getPhone()
The customer account's contact phone number.
string phone = 7;
- Specified by:
getPhone
in interfaceContactInfoOrBuilder
- Returns:
- The phone.
-
getPhoneBytes
public com.google.protobuf.ByteString getPhoneBytes()
The customer account's contact phone number.
string phone = 7;
- Specified by:
getPhoneBytes
in interfaceContactInfoOrBuilder
- Returns:
- The bytes for phone.
-
setPhone
public ContactInfo.Builder setPhone(String value)
The customer account's contact phone number.
string phone = 7;
- Parameters:
value
- The phone to set.- Returns:
- This builder for chaining.
-
clearPhone
public ContactInfo.Builder clearPhone()
The customer account's contact phone number.
string phone = 7;
- Returns:
- This builder for chaining.
-
setPhoneBytes
public ContactInfo.Builder setPhoneBytes(com.google.protobuf.ByteString value)
The customer account's contact phone number.
string phone = 7;
- Parameters:
value
- The bytes for phone to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ContactInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
mergeUnknownFields
public final ContactInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
-