Class CreateContactRequest.Builder

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

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

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

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

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

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

      public CreateContactRequest.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<CreateContactRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The resource to save this contact for.
       Format: organizations/{organization_id}, folders/{folder_id} or
       projects/{project_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateContactRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The resource to save this contact for.
       Format: organizations/{organization_id}, folders/{folder_id} or
       projects/{project_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateContactRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateContactRequest.Builder setParent(String value)
       Required. The resource to save this contact for.
       Format: organizations/{organization_id}, folders/{folder_id} or
       projects/{project_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateContactRequest.Builder clearParent()
       Required. The resource to save this contact for.
       Format: organizations/{organization_id}, folders/{folder_id} or
       projects/{project_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateContactRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The resource to save this contact for.
       Format: organizations/{organization_id}, folders/{folder_id} or
       projects/{project_id}
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasContact

      public boolean hasContact()
       Required. The contact to create. Must specify an email address and language
       tag.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasContact in interface CreateContactRequestOrBuilder
      Returns:
      Whether the contact field is set.
    • getContact

      public Contact getContact()
       Required. The contact to create. Must specify an email address and language
       tag.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContact in interface CreateContactRequestOrBuilder
      Returns:
      The contact.
    • setContact

      public CreateContactRequest.Builder setContact(Contact value)
       Required. The contact to create. Must specify an email address and language
       tag.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
    • setContact

      public CreateContactRequest.Builder setContact(Contact.Builder builderForValue)
       Required. The contact to create. Must specify an email address and language
       tag.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeContact

      public CreateContactRequest.Builder mergeContact(Contact value)
       Required. The contact to create. Must specify an email address and language
       tag.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearContact

      public CreateContactRequest.Builder clearContact()
       Required. The contact to create. Must specify an email address and language
       tag.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
    • getContactBuilder

      public Contact.Builder getContactBuilder()
       Required. The contact to create. Must specify an email address and language
       tag.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
    • getContactOrBuilder

      public ContactOrBuilder getContactOrBuilder()
       Required. The contact to create. Must specify an email address and language
       tag.
       
      .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContactOrBuilder in interface CreateContactRequestOrBuilder