Class 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 type google.cloud.channel.v1.ContactInfo
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
      • clear

        public ContactInfo.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
      • getDefaultInstanceForType

        public ContactInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public ContactInfo build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public ContactInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public ContactInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
      • setField

        public ContactInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
      • clearField

        public ContactInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
      • clearOneof

        public ContactInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
      • addRepeatedField

        public ContactInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
      • mergeFrom

        public ContactInfo.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ContactInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface ContactInfoOrBuilder
        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 interface ContactInfoOrBuilder
        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 interface ContactInfoOrBuilder
        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 interface ContactInfoOrBuilder
        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 interface ContactInfoOrBuilder
        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 interface ContactInfoOrBuilder
        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 interface ContactInfoOrBuilder
        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 interface ContactInfoOrBuilder
        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 interface ContactInfoOrBuilder
        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 interface ContactInfoOrBuilder
        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 interface ContactInfoOrBuilder
        Returns:
        The phone.
      • getPhoneBytes

        public com.google.protobuf.ByteString getPhoneBytes()
         The customer account's contact phone number.
         
        string phone = 7;
        Specified by:
        getPhoneBytes in interface ContactInfoOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>
      • mergeUnknownFields

        public final ContactInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ContactInfo.Builder>