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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ContactInfobuild()ContactInfobuildPartial()ContactInfo.Builderclear()ContactInfo.BuilderclearDisplayName()Output only.ContactInfo.BuilderclearEmail()The customer account's contact email.ContactInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ContactInfo.BuilderclearFirstName()The customer account contact's first name.ContactInfo.BuilderclearLastName()The customer account contact's last name.ContactInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ContactInfo.BuilderclearPhone()The customer account's contact phone number.ContactInfo.BuilderclearTitle()Optional.ContactInfo.Builderclone()ContactInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDisplayName()Output only.com.google.protobuf.ByteStringgetDisplayNameBytes()Output only.StringgetEmail()The customer account's contact email.com.google.protobuf.ByteStringgetEmailBytes()The customer account's contact email.StringgetFirstName()The customer account contact's first name.com.google.protobuf.ByteStringgetFirstNameBytes()The customer account contact's first name.StringgetLastName()The customer account contact's last name.com.google.protobuf.ByteStringgetLastNameBytes()The customer account contact's last name.StringgetPhone()The customer account's contact phone number.com.google.protobuf.ByteStringgetPhoneBytes()The customer account's contact phone number.StringgetTitle()Optional.com.google.protobuf.ByteStringgetTitleBytes()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ContactInfo.BuildermergeFrom(ContactInfo other)ContactInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ContactInfo.BuildermergeFrom(com.google.protobuf.Message other)ContactInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ContactInfo.BuildersetDisplayName(String value)Output only.ContactInfo.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)Output only.ContactInfo.BuildersetEmail(String value)The customer account's contact email.ContactInfo.BuildersetEmailBytes(com.google.protobuf.ByteString value)The customer account's contact email.ContactInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ContactInfo.BuildersetFirstName(String value)The customer account contact's first name.ContactInfo.BuildersetFirstNameBytes(com.google.protobuf.ByteString value)The customer account contact's first name.ContactInfo.BuildersetLastName(String value)The customer account contact's last name.ContactInfo.BuildersetLastNameBytes(com.google.protobuf.ByteString value)The customer account contact's last name.ContactInfo.BuildersetPhone(String value)The customer account's contact phone number.ContactInfo.BuildersetPhoneBytes(com.google.protobuf.ByteString value)The customer account's contact phone number.ContactInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ContactInfo.BuildersetTitle(String value)Optional.ContactInfo.BuildersetTitleBytes(com.google.protobuf.ByteString value)Optional.ContactInfo.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
clear
public ContactInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
getDefaultInstanceForType
public ContactInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ContactInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ContactInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ContactInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
setField
public ContactInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
clearField
public ContactInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
clearOneof
public ContactInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
setRepeatedField
public ContactInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
addRepeatedField
public ContactInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
mergeFrom
public ContactInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ContactInfo.Builder>
-
mergeFrom
public ContactInfo.Builder mergeFrom(ContactInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
getFirstNamein 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:
getFirstNameBytesin 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:
getLastNamein 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:
getLastNameBytesin 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:
getDisplayNamein 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:
getDisplayNameBytesin 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:
getEmailin 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:
getEmailBytesin 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:
getTitlein 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:
getTitleBytesin 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:
getPhonein interfaceContactInfoOrBuilder- Returns:
- The phone.
-
getPhoneBytes
public com.google.protobuf.ByteString getPhoneBytes()
The customer account's contact phone number.
string phone = 7;- Specified by:
getPhoneBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
mergeUnknownFields
public final ContactInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
-
-