Class Contact.Builder

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

public static final class Contact.Builder extends com.google.protobuf.GeneratedMessage.Builder<Contact.Builder> implements ContactOrBuilder
 Contact details of a point of contact.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Contact
  • 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<Contact.Builder>
    • clear

      public Contact.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<Contact.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<Contact.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Contact.Builder mergeFrom(Contact other)
    • isInitialized

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

      public Contact.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<Contact.Builder>
      Throws:
      IOException
    • getGivenName

      public String getGivenName()
       Required. Given name of the contact.
       
      string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGivenName in interface ContactOrBuilder
      Returns:
      The givenName.
    • getGivenNameBytes

      public com.google.protobuf.ByteString getGivenNameBytes()
       Required. Given name of the contact.
       
      string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGivenNameBytes in interface ContactOrBuilder
      Returns:
      The bytes for givenName.
    • setGivenName

      public Contact.Builder setGivenName(String value)
       Required. Given name of the contact.
       
      string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The givenName to set.
      Returns:
      This builder for chaining.
    • clearGivenName

      public Contact.Builder clearGivenName()
       Required. Given name of the contact.
       
      string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setGivenNameBytes

      public Contact.Builder setGivenNameBytes(com.google.protobuf.ByteString value)
       Required. Given name of the contact.
       
      string given_name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for givenName to set.
      Returns:
      This builder for chaining.
    • getFamilyName

      public String getFamilyName()
       Optional. Family name of the contact.
       
      string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFamilyName in interface ContactOrBuilder
      Returns:
      The familyName.
    • getFamilyNameBytes

      public com.google.protobuf.ByteString getFamilyNameBytes()
       Optional. Family name of the contact.
       
      string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFamilyNameBytes in interface ContactOrBuilder
      Returns:
      The bytes for familyName.
    • setFamilyName

      public Contact.Builder setFamilyName(String value)
       Optional. Family name of the contact.
       
      string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The familyName to set.
      Returns:
      This builder for chaining.
    • clearFamilyName

      public Contact.Builder clearFamilyName()
       Optional. Family name of the contact.
       
      string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFamilyNameBytes

      public Contact.Builder setFamilyNameBytes(com.google.protobuf.ByteString value)
       Optional. Family name of the contact.
       
      string family_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for familyName to set.
      Returns:
      This builder for chaining.
    • getEmail

      public String getEmail()
       Required. Email of the contact.
       
      string email = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEmail in interface ContactOrBuilder
      Returns:
      The email.
    • getEmailBytes

      public com.google.protobuf.ByteString getEmailBytes()
       Required. Email of the contact.
       
      string email = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEmailBytes in interface ContactOrBuilder
      Returns:
      The bytes for email.
    • setEmail

      public Contact.Builder setEmail(String value)
       Required. Email of the contact.
       
      string email = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The email to set.
      Returns:
      This builder for chaining.
    • clearEmail

      public Contact.Builder clearEmail()
       Required. Email of the contact.
       
      string email = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setEmailBytes

      public Contact.Builder setEmailBytes(com.google.protobuf.ByteString value)
       Required. Email of the contact.
       
      string email = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for email to set.
      Returns:
      This builder for chaining.
    • getPhone

      public String getPhone()
       Required. Phone number of the contact.
       
      string phone = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhone in interface ContactOrBuilder
      Returns:
      The phone.
    • getPhoneBytes

      public com.google.protobuf.ByteString getPhoneBytes()
       Required. Phone number of the contact.
       
      string phone = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhoneBytes in interface ContactOrBuilder
      Returns:
      The bytes for phone.
    • setPhone

      public Contact.Builder setPhone(String value)
       Required. Phone number of the contact.
       
      string phone = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The phone to set.
      Returns:
      This builder for chaining.
    • clearPhone

      public Contact.Builder clearPhone()
       Required. Phone number of the contact.
       
      string phone = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPhoneBytes

      public Contact.Builder setPhoneBytes(com.google.protobuf.ByteString value)
       Required. Phone number of the contact.
       
      string phone = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for phone to set.
      Returns:
      This builder for chaining.
    • hasTimeZone

      public boolean hasTimeZone()
       Optional. Time zone of the contact.
       
      .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTimeZone in interface ContactOrBuilder
      Returns:
      Whether the timeZone field is set.
    • getTimeZone

      public TimeZone getTimeZone()
       Optional. Time zone of the contact.
       
      .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTimeZone in interface ContactOrBuilder
      Returns:
      The timeZone.
    • setTimeZone

      public Contact.Builder setTimeZone(TimeZone value)
       Optional. Time zone of the contact.
       
      .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setTimeZone

      public Contact.Builder setTimeZone(TimeZone.Builder builderForValue)
       Optional. Time zone of the contact.
       
      .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTimeZone

      public Contact.Builder mergeTimeZone(TimeZone value)
       Optional. Time zone of the contact.
       
      .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearTimeZone

      public Contact.Builder clearTimeZone()
       Optional. Time zone of the contact.
       
      .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getTimeZoneBuilder

      public TimeZone.Builder getTimeZoneBuilder()
       Optional. Time zone of the contact.
       
      .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getTimeZoneOrBuilder

      public TimeZoneOrBuilder getTimeZoneOrBuilder()
       Optional. Time zone of the contact.
       
      .google.type.TimeZone time_zone = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTimeZoneOrBuilder in interface ContactOrBuilder
    • getReachableTimesList

      public List<TimePeriod> getReachableTimesList()
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReachableTimesList in interface ContactOrBuilder
    • getReachableTimesCount

      public int getReachableTimesCount()
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReachableTimesCount in interface ContactOrBuilder
    • getReachableTimes

      public TimePeriod getReachableTimes(int index)
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReachableTimes in interface ContactOrBuilder
    • setReachableTimes

      public Contact.Builder setReachableTimes(int index, TimePeriod value)
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setReachableTimes

      public Contact.Builder setReachableTimes(int index, TimePeriod.Builder builderForValue)
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addReachableTimes

      public Contact.Builder addReachableTimes(TimePeriod value)
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addReachableTimes

      public Contact.Builder addReachableTimes(int index, TimePeriod value)
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addReachableTimes

      public Contact.Builder addReachableTimes(TimePeriod.Builder builderForValue)
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addReachableTimes

      public Contact.Builder addReachableTimes(int index, TimePeriod.Builder builderForValue)
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addAllReachableTimes

      public Contact.Builder addAllReachableTimes(Iterable<? extends TimePeriod> values)
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearReachableTimes

      public Contact.Builder clearReachableTimes()
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
    • removeReachableTimes

      public Contact.Builder removeReachableTimes(int index)
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getReachableTimesBuilder

      public TimePeriod.Builder getReachableTimesBuilder(int index)
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getReachableTimesOrBuilder

      public TimePeriodOrBuilder getReachableTimesOrBuilder(int index)
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReachableTimesOrBuilder in interface ContactOrBuilder
    • getReachableTimesOrBuilderList

      public List<? extends TimePeriodOrBuilder> getReachableTimesOrBuilderList()
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReachableTimesOrBuilderList in interface ContactOrBuilder
    • addReachableTimesBuilder

      public TimePeriod.Builder addReachableTimesBuilder()
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
    • addReachableTimesBuilder

      public TimePeriod.Builder addReachableTimesBuilder(int index)
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getReachableTimesBuilderList

      public List<TimePeriod.Builder> getReachableTimesBuilderList()
       Optional. The time periods when the contact is reachable.
       If this field is empty, the contact is reachable at all times.
       
      repeated .google.cloud.gdchardwaremanagement.v1alpha.TimePeriod reachable_times = 6 [(.google.api.field_behavior) = OPTIONAL];