Class UpdateContactRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<UpdateContactRequest.Builder>
com.google.cloud.essentialcontacts.v1.UpdateContactRequest.Builder
All Implemented Interfaces:
UpdateContactRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
UpdateContactRequest

public static final class UpdateContactRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateContactRequest.Builder> implements UpdateContactRequestOrBuilder
 Request message for the UpdateContact method.
 
Protobuf type google.cloud.essentialcontacts.v1.UpdateContactRequest
  • 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<UpdateContactRequest.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<UpdateContactRequest.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<UpdateContactRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public UpdateContactRequest.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<UpdateContactRequest.Builder>
      Throws:
      IOException
    • hasContact

      public boolean hasContact()
       Required. The contact resource to replace the existing saved contact. Note:
       the email address of the contact cannot be modified.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasContact in interface UpdateContactRequestOrBuilder
      Returns:
      Whether the contact field is set.
    • getContact

      public Contact getContact()
       Required. The contact resource to replace the existing saved contact. Note:
       the email address of the contact cannot be modified.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContact in interface UpdateContactRequestOrBuilder
      Returns:
      The contact.
    • setContact

      public UpdateContactRequest.Builder setContact(Contact value)
       Required. The contact resource to replace the existing saved contact. Note:
       the email address of the contact cannot be modified.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
    • setContact

      public UpdateContactRequest.Builder setContact(Contact.Builder builderForValue)
       Required. The contact resource to replace the existing saved contact. Note:
       the email address of the contact cannot be modified.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeContact

      public UpdateContactRequest.Builder mergeContact(Contact value)
       Required. The contact resource to replace the existing saved contact. Note:
       the email address of the contact cannot be modified.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearContact

      public UpdateContactRequest.Builder clearContact()
       Required. The contact resource to replace the existing saved contact. Note:
       the email address of the contact cannot be modified.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
    • getContactBuilder

      public Contact.Builder getContactBuilder()
       Required. The contact resource to replace the existing saved contact. Note:
       the email address of the contact cannot be modified.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
    • getContactOrBuilder

      public ContactOrBuilder getContactOrBuilder()
       Required. The contact resource to replace the existing saved contact. Note:
       the email address of the contact cannot be modified.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContactOrBuilder in interface UpdateContactRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       Optional. The update mask applied to the resource. For the `FieldMask`
       definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasUpdateMask in interface UpdateContactRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       Optional. The update mask applied to the resource. For the `FieldMask`
       definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMask in interface UpdateContactRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdateContactRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       Optional. The update mask applied to the resource. For the `FieldMask`
       definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setUpdateMask

      public UpdateContactRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       Optional. The update mask applied to the resource. For the `FieldMask`
       definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeUpdateMask

      public UpdateContactRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       Optional. The update mask applied to the resource. For the `FieldMask`
       definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearUpdateMask

      public UpdateContactRequest.Builder clearUpdateMask()
       Optional. The update mask applied to the resource. For the `FieldMask`
       definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       Optional. The update mask applied to the resource. For the `FieldMask`
       definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       Optional. The update mask applied to the resource. For the `FieldMask`
       definition, see
       https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
       
      .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getUpdateMaskOrBuilder in interface UpdateContactRequestOrBuilder