Class CreateCustomerClientRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CreateCustomerClientRequest.Builder>
com.google.ads.googleads.v18.services.CreateCustomerClientRequest.Builder
All Implemented Interfaces:
CreateCustomerClientRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateCustomerClientRequest

public static final class CreateCustomerClientRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateCustomerClientRequest.Builder> implements CreateCustomerClientRequestOrBuilder
 Request message for
 [CustomerService.CreateCustomerClient][google.ads.googleads.v18.services.CustomerService.CreateCustomerClient].
 
Protobuf type google.ads.googleads.v18.services.CreateCustomerClientRequest
  • Method Details

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateCustomerClientRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<CreateCustomerClientRequest.Builder>
    • setField

      public CreateCustomerClientRequest.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<CreateCustomerClientRequest.Builder>
    • clearField

      public CreateCustomerClientRequest.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<CreateCustomerClientRequest.Builder>
    • clearOneof

      public CreateCustomerClientRequest.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<CreateCustomerClientRequest.Builder>
    • setRepeatedField

      public CreateCustomerClientRequest.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<CreateCustomerClientRequest.Builder>
    • addRepeatedField

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

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

    • isInitialized

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

      public CreateCustomerClientRequest.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<CreateCustomerClientRequest.Builder>
      Throws:
      IOException
    • getCustomerId

      public String getCustomerId()
       Required. The ID of the Manager under whom client customer is being
       created.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerId in interface CreateCustomerClientRequestOrBuilder
      Returns:
      The customerId.
    • getCustomerIdBytes

      public com.google.protobuf.ByteString getCustomerIdBytes()
       Required. The ID of the Manager under whom client customer is being
       created.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerIdBytes in interface CreateCustomerClientRequestOrBuilder
      Returns:
      The bytes for customerId.
    • setCustomerId

      public CreateCustomerClientRequest.Builder setCustomerId(String value)
       Required. The ID of the Manager under whom client customer is being
       created.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The customerId to set.
      Returns:
      This builder for chaining.
    • clearCustomerId

      public CreateCustomerClientRequest.Builder clearCustomerId()
       Required. The ID of the Manager under whom client customer is being
       created.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCustomerIdBytes

      public CreateCustomerClientRequest.Builder setCustomerIdBytes(com.google.protobuf.ByteString value)
       Required. The ID of the Manager under whom client customer is being
       created.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for customerId to set.
      Returns:
      This builder for chaining.
    • hasCustomerClient

      public boolean hasCustomerClient()
       Required. The new client customer to create. The resource name on this
       customer will be ignored.
       
      .google.ads.googleads.v18.resources.Customer customer_client = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCustomerClient in interface CreateCustomerClientRequestOrBuilder
      Returns:
      Whether the customerClient field is set.
    • getCustomerClient

      public Customer getCustomerClient()
       Required. The new client customer to create. The resource name on this
       customer will be ignored.
       
      .google.ads.googleads.v18.resources.Customer customer_client = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerClient in interface CreateCustomerClientRequestOrBuilder
      Returns:
      The customerClient.
    • setCustomerClient

      public CreateCustomerClientRequest.Builder setCustomerClient(Customer value)
       Required. The new client customer to create. The resource name on this
       customer will be ignored.
       
      .google.ads.googleads.v18.resources.Customer customer_client = 2 [(.google.api.field_behavior) = REQUIRED];
    • setCustomerClient

      public CreateCustomerClientRequest.Builder setCustomerClient(Customer.Builder builderForValue)
       Required. The new client customer to create. The resource name on this
       customer will be ignored.
       
      .google.ads.googleads.v18.resources.Customer customer_client = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeCustomerClient

      public CreateCustomerClientRequest.Builder mergeCustomerClient(Customer value)
       Required. The new client customer to create. The resource name on this
       customer will be ignored.
       
      .google.ads.googleads.v18.resources.Customer customer_client = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearCustomerClient

      public CreateCustomerClientRequest.Builder clearCustomerClient()
       Required. The new client customer to create. The resource name on this
       customer will be ignored.
       
      .google.ads.googleads.v18.resources.Customer customer_client = 2 [(.google.api.field_behavior) = REQUIRED];
    • getCustomerClientBuilder

      public Customer.Builder getCustomerClientBuilder()
       Required. The new client customer to create. The resource name on this
       customer will be ignored.
       
      .google.ads.googleads.v18.resources.Customer customer_client = 2 [(.google.api.field_behavior) = REQUIRED];
    • getCustomerClientOrBuilder

      public CustomerOrBuilder getCustomerClientOrBuilder()
       Required. The new client customer to create. The resource name on this
       customer will be ignored.
       
      .google.ads.googleads.v18.resources.Customer customer_client = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerClientOrBuilder in interface CreateCustomerClientRequestOrBuilder
    • hasEmailAddress

      public boolean hasEmailAddress()
       Email address of the user who should be invited on the created client
       customer. Accessible only to customers on the allow-list.
       
      optional string email_address = 5;
      Specified by:
      hasEmailAddress in interface CreateCustomerClientRequestOrBuilder
      Returns:
      Whether the emailAddress field is set.
    • getEmailAddress

      public String getEmailAddress()
       Email address of the user who should be invited on the created client
       customer. Accessible only to customers on the allow-list.
       
      optional string email_address = 5;
      Specified by:
      getEmailAddress in interface CreateCustomerClientRequestOrBuilder
      Returns:
      The emailAddress.
    • getEmailAddressBytes

      public com.google.protobuf.ByteString getEmailAddressBytes()
       Email address of the user who should be invited on the created client
       customer. Accessible only to customers on the allow-list.
       
      optional string email_address = 5;
      Specified by:
      getEmailAddressBytes in interface CreateCustomerClientRequestOrBuilder
      Returns:
      The bytes for emailAddress.
    • setEmailAddress

      public CreateCustomerClientRequest.Builder setEmailAddress(String value)
       Email address of the user who should be invited on the created client
       customer. Accessible only to customers on the allow-list.
       
      optional string email_address = 5;
      Parameters:
      value - The emailAddress to set.
      Returns:
      This builder for chaining.
    • clearEmailAddress

      public CreateCustomerClientRequest.Builder clearEmailAddress()
       Email address of the user who should be invited on the created client
       customer. Accessible only to customers on the allow-list.
       
      optional string email_address = 5;
      Returns:
      This builder for chaining.
    • setEmailAddressBytes

      public CreateCustomerClientRequest.Builder setEmailAddressBytes(com.google.protobuf.ByteString value)
       Email address of the user who should be invited on the created client
       customer. Accessible only to customers on the allow-list.
       
      optional string email_address = 5;
      Parameters:
      value - The bytes for emailAddress to set.
      Returns:
      This builder for chaining.
    • getAccessRoleValue

      public int getAccessRoleValue()
       The proposed role of user on the created client customer.
       Accessible only to customers on the allow-list.
       
      .google.ads.googleads.v18.enums.AccessRoleEnum.AccessRole access_role = 4;
      Specified by:
      getAccessRoleValue in interface CreateCustomerClientRequestOrBuilder
      Returns:
      The enum numeric value on the wire for accessRole.
    • setAccessRoleValue

      public CreateCustomerClientRequest.Builder setAccessRoleValue(int value)
       The proposed role of user on the created client customer.
       Accessible only to customers on the allow-list.
       
      .google.ads.googleads.v18.enums.AccessRoleEnum.AccessRole access_role = 4;
      Parameters:
      value - The enum numeric value on the wire for accessRole to set.
      Returns:
      This builder for chaining.
    • getAccessRole

      public AccessRoleEnum.AccessRole getAccessRole()
       The proposed role of user on the created client customer.
       Accessible only to customers on the allow-list.
       
      .google.ads.googleads.v18.enums.AccessRoleEnum.AccessRole access_role = 4;
      Specified by:
      getAccessRole in interface CreateCustomerClientRequestOrBuilder
      Returns:
      The accessRole.
    • setAccessRole

       The proposed role of user on the created client customer.
       Accessible only to customers on the allow-list.
       
      .google.ads.googleads.v18.enums.AccessRoleEnum.AccessRole access_role = 4;
      Parameters:
      value - The accessRole to set.
      Returns:
      This builder for chaining.
    • clearAccessRole

      public CreateCustomerClientRequest.Builder clearAccessRole()
       The proposed role of user on the created client customer.
       Accessible only to customers on the allow-list.
       
      .google.ads.googleads.v18.enums.AccessRoleEnum.AccessRole access_role = 4;
      Returns:
      This builder for chaining.
    • getValidateOnly

      public boolean getValidateOnly()
       If true, the request is validated but not executed. Only errors are
       returned, not results.
       
      bool validate_only = 6;
      Specified by:
      getValidateOnly in interface CreateCustomerClientRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public CreateCustomerClientRequest.Builder setValidateOnly(boolean value)
       If true, the request is validated but not executed. Only errors are
       returned, not results.
       
      bool validate_only = 6;
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public CreateCustomerClientRequest.Builder clearValidateOnly()
       If true, the request is validated but not executed. Only errors are
       returned, not results.
       
      bool validate_only = 6;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final CreateCustomerClientRequest.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<CreateCustomerClientRequest.Builder>
    • mergeUnknownFields

      public final CreateCustomerClientRequest.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<CreateCustomerClientRequest.Builder>