Class OrganizationContact.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OrganizationContact.Builder>
com.google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact.Builder
All Implemented Interfaces:
OrganizationContactOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
OrganizationContact

public static final class OrganizationContact.Builder extends com.google.protobuf.GeneratedMessage.Builder<OrganizationContact.Builder> implements OrganizationContactOrBuilder
 Contact information of the customer organization.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.OrganizationContact
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<OrganizationContact.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.GeneratedMessage.Builder<OrganizationContact.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.GeneratedMessage.Builder<OrganizationContact.Builder>
    • getDefaultInstanceForType

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

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

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

      public OrganizationContact.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<OrganizationContact.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<OrganizationContact.Builder>
    • mergeFrom

      public OrganizationContact.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<OrganizationContact.Builder>
      Throws:
      IOException
    • hasAddress

      public boolean hasAddress()
       Required. The organization's address.
       
      .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAddress in interface OrganizationContactOrBuilder
      Returns:
      Whether the address field is set.
    • getAddress

      public PostalAddress getAddress()
       Required. The organization's address.
       
      .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAddress in interface OrganizationContactOrBuilder
      Returns:
      The address.
    • setAddress

      public OrganizationContact.Builder setAddress(PostalAddress value)
       Required. The organization's address.
       
      .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
    • setAddress

      public OrganizationContact.Builder setAddress(PostalAddress.Builder builderForValue)
       Required. The organization's address.
       
      .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeAddress

      public OrganizationContact.Builder mergeAddress(PostalAddress value)
       Required. The organization's address.
       
      .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearAddress

      public OrganizationContact.Builder clearAddress()
       Required. The organization's address.
       
      .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
    • getAddressBuilder

      public PostalAddress.Builder getAddressBuilder()
       Required. The organization's address.
       
      .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
    • getAddressOrBuilder

      public PostalAddressOrBuilder getAddressOrBuilder()
       Required. The organization's address.
       
      .google.type.PostalAddress address = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAddressOrBuilder in interface OrganizationContactOrBuilder
    • getEmail

      public String getEmail()
       Optional. The organization's email.
       
      string email = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEmail in interface OrganizationContactOrBuilder
      Returns:
      The email.
    • getEmailBytes

      public com.google.protobuf.ByteString getEmailBytes()
       Optional. The organization's email.
       
      string email = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEmailBytes in interface OrganizationContactOrBuilder
      Returns:
      The bytes for email.
    • setEmail

      public OrganizationContact.Builder setEmail(String value)
       Optional. The organization's email.
       
      string email = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The email to set.
      Returns:
      This builder for chaining.
    • clearEmail

      public OrganizationContact.Builder clearEmail()
       Optional. The organization's email.
       
      string email = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEmailBytes

      public OrganizationContact.Builder setEmailBytes(com.google.protobuf.ByteString value)
       Optional. The organization's email.
       
      string email = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for email to set.
      Returns:
      This builder for chaining.
    • getPhone

      public String getPhone()
       Optional. The organization's phone number.
       
      string phone = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPhone in interface OrganizationContactOrBuilder
      Returns:
      The phone.
    • getPhoneBytes

      public com.google.protobuf.ByteString getPhoneBytes()
       Optional. The organization's phone number.
       
      string phone = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPhoneBytes in interface OrganizationContactOrBuilder
      Returns:
      The bytes for phone.
    • setPhone

      public OrganizationContact.Builder setPhone(String value)
       Optional. The organization's phone number.
       
      string phone = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The phone to set.
      Returns:
      This builder for chaining.
    • clearPhone

      public OrganizationContact.Builder clearPhone()
       Optional. The organization's phone number.
       
      string phone = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setPhoneBytes

      public OrganizationContact.Builder setPhoneBytes(com.google.protobuf.ByteString value)
       Optional. The organization's phone number.
       
      string phone = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for phone to set.
      Returns:
      This builder for chaining.
    • getContactsList

      public List<Contact> getContactsList()
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContactsList in interface OrganizationContactOrBuilder
    • getContactsCount

      public int getContactsCount()
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContactsCount in interface OrganizationContactOrBuilder
    • getContacts

      public Contact getContacts(int index)
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContacts in interface OrganizationContactOrBuilder
    • setContacts

      public OrganizationContact.Builder setContacts(int index, Contact value)
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
    • setContacts

      public OrganizationContact.Builder setContacts(int index, Contact.Builder builderForValue)
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
    • addContacts

      public OrganizationContact.Builder addContacts(Contact value)
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
    • addContacts

      public OrganizationContact.Builder addContacts(int index, Contact value)
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
    • addContacts

      public OrganizationContact.Builder addContacts(Contact.Builder builderForValue)
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
    • addContacts

      public OrganizationContact.Builder addContacts(int index, Contact.Builder builderForValue)
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
    • addAllContacts

      public OrganizationContact.Builder addAllContacts(Iterable<? extends Contact> values)
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearContacts

      public OrganizationContact.Builder clearContacts()
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
    • removeContacts

      public OrganizationContact.Builder removeContacts(int index)
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
    • getContactsBuilder

      public Contact.Builder getContactsBuilder(int index)
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
    • getContactsOrBuilder

      public ContactOrBuilder getContactsOrBuilder(int index)
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContactsOrBuilder in interface OrganizationContactOrBuilder
    • getContactsOrBuilderList

      public List<? extends ContactOrBuilder> getContactsOrBuilderList()
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContactsOrBuilderList in interface OrganizationContactOrBuilder
    • addContactsBuilder

      public Contact.Builder addContactsBuilder()
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
    • addContactsBuilder

      public Contact.Builder addContactsBuilder(int index)
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];
    • getContactsBuilderList

      public List<Contact.Builder> getContactsBuilderList()
       Required. The individual points of contact in the organization at this
       location.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.Contact contacts = 4 [(.google.api.field_behavior) = REQUIRED];