Class MutateRecommendationSubscriptionRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<MutateRecommendationSubscriptionRequest.Builder>
com.google.ads.googleads.v23.services.MutateRecommendationSubscriptionRequest.Builder
All Implemented Interfaces:
MutateRecommendationSubscriptionRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
MutateRecommendationSubscriptionRequest

public static final class MutateRecommendationSubscriptionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<MutateRecommendationSubscriptionRequest.Builder> implements MutateRecommendationSubscriptionRequestOrBuilder
 Request message for
 [RecommendationSubscriptionService.MutateRecommendationSubscription][google.ads.googleads.v23.services.RecommendationSubscriptionService.MutateRecommendationSubscription]
 
Protobuf type google.ads.googleads.v23.services.MutateRecommendationSubscriptionRequest
  • 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<MutateRecommendationSubscriptionRequest.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<MutateRecommendationSubscriptionRequest.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<MutateRecommendationSubscriptionRequest.Builder>
    • getDefaultInstanceForType

      public MutateRecommendationSubscriptionRequest 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

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

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

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

      public String getCustomerId()
       Required. The ID of the subscribing customer.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerId in interface MutateRecommendationSubscriptionRequestOrBuilder
      Returns:
      The customerId.
    • getCustomerIdBytes

      public com.google.protobuf.ByteString getCustomerIdBytes()
       Required. The ID of the subscribing customer.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomerIdBytes in interface MutateRecommendationSubscriptionRequestOrBuilder
      Returns:
      The bytes for customerId.
    • setCustomerId

       Required. The ID of the subscribing customer.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The customerId to set.
      Returns:
      This builder for chaining.
    • clearCustomerId

       Required. The ID of the subscribing customer.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCustomerIdBytes

      public MutateRecommendationSubscriptionRequest.Builder setCustomerIdBytes(com.google.protobuf.ByteString value)
       Required. The ID of the subscribing customer.
       
      string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for customerId to set.
      Returns:
      This builder for chaining.
    • getOperationsList

      public List<RecommendationSubscriptionOperation> getOperationsList()
       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOperationsList in interface MutateRecommendationSubscriptionRequestOrBuilder
    • getOperationsCount

      public int getOperationsCount()
       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOperationsCount in interface MutateRecommendationSubscriptionRequestOrBuilder
    • getOperations

      public RecommendationSubscriptionOperation getOperations(int index)
       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOperations in interface MutateRecommendationSubscriptionRequestOrBuilder
    • setOperations

       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • setOperations

       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • addOperations

       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • addOperations

       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • addOperations

       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • addOperations

       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • addAllOperations

       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearOperations

       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • removeOperations

      public MutateRecommendationSubscriptionRequest.Builder removeOperations(int index)
       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • getOperationsBuilder

      public RecommendationSubscriptionOperation.Builder getOperationsBuilder(int index)
       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • getOperationsOrBuilder

      public RecommendationSubscriptionOperationOrBuilder getOperationsOrBuilder(int index)
       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOperationsOrBuilder in interface MutateRecommendationSubscriptionRequestOrBuilder
    • getOperationsOrBuilderList

      public List<? extends RecommendationSubscriptionOperationOrBuilder> getOperationsOrBuilderList()
       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOperationsOrBuilderList in interface MutateRecommendationSubscriptionRequestOrBuilder
    • addOperationsBuilder

      public RecommendationSubscriptionOperation.Builder addOperationsBuilder()
       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • addOperationsBuilder

      public RecommendationSubscriptionOperation.Builder addOperationsBuilder(int index)
       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • getOperationsBuilderList

      public List<RecommendationSubscriptionOperation.Builder> getOperationsBuilderList()
       Required. The list of create or update operations.
       
      repeated .google.ads.googleads.v23.services.RecommendationSubscriptionOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
    • getPartialFailure

      public boolean getPartialFailure()
       If true, successful operations will be carried out and invalid
       operations will return errors. If false, all operations will be carried
       out in one transaction if and only if they are all valid.
       Default is false.
       
      bool partial_failure = 3;
      Specified by:
      getPartialFailure in interface MutateRecommendationSubscriptionRequestOrBuilder
      Returns:
      The partialFailure.
    • setPartialFailure

      public MutateRecommendationSubscriptionRequest.Builder setPartialFailure(boolean value)
       If true, successful operations will be carried out and invalid
       operations will return errors. If false, all operations will be carried
       out in one transaction if and only if they are all valid.
       Default is false.
       
      bool partial_failure = 3;
      Parameters:
      value - The partialFailure to set.
      Returns:
      This builder for chaining.
    • clearPartialFailure

       If true, successful operations will be carried out and invalid
       operations will return errors. If false, all operations will be carried
       out in one transaction if and only if they are all valid.
       Default is false.
       
      bool partial_failure = 3;
      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 = 4;
      Specified by:
      getValidateOnly in interface MutateRecommendationSubscriptionRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

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

       If true, the request is validated but not executed. Only errors are
       returned, not results.
       
      bool validate_only = 4;
      Returns:
      This builder for chaining.
    • getResponseContentTypeValue

      public int getResponseContentTypeValue()
       The response content type setting. Determines whether the mutable resource
       or just the resource name should be returned post mutation. The mutable
       resource will only be returned if the resource has the appropriate response
       field. For example, MutateCampaignResult.campaign.
       
      .google.ads.googleads.v23.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5;
      Specified by:
      getResponseContentTypeValue in interface MutateRecommendationSubscriptionRequestOrBuilder
      Returns:
      The enum numeric value on the wire for responseContentType.
    • setResponseContentTypeValue

      public MutateRecommendationSubscriptionRequest.Builder setResponseContentTypeValue(int value)
       The response content type setting. Determines whether the mutable resource
       or just the resource name should be returned post mutation. The mutable
       resource will only be returned if the resource has the appropriate response
       field. For example, MutateCampaignResult.campaign.
       
      .google.ads.googleads.v23.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5;
      Parameters:
      value - The enum numeric value on the wire for responseContentType to set.
      Returns:
      This builder for chaining.
    • getResponseContentType

      public ResponseContentTypeEnum.ResponseContentType getResponseContentType()
       The response content type setting. Determines whether the mutable resource
       or just the resource name should be returned post mutation. The mutable
       resource will only be returned if the resource has the appropriate response
       field. For example, MutateCampaignResult.campaign.
       
      .google.ads.googleads.v23.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5;
      Specified by:
      getResponseContentType in interface MutateRecommendationSubscriptionRequestOrBuilder
      Returns:
      The responseContentType.
    • setResponseContentType

       The response content type setting. Determines whether the mutable resource
       or just the resource name should be returned post mutation. The mutable
       resource will only be returned if the resource has the appropriate response
       field. For example, MutateCampaignResult.campaign.
       
      .google.ads.googleads.v23.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5;
      Parameters:
      value - The responseContentType to set.
      Returns:
      This builder for chaining.
    • clearResponseContentType

      public MutateRecommendationSubscriptionRequest.Builder clearResponseContentType()
       The response content type setting. Determines whether the mutable resource
       or just the resource name should be returned post mutation. The mutable
       resource will only be returned if the resource has the appropriate response
       field. For example, MutateCampaignResult.campaign.
       
      .google.ads.googleads.v23.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5;
      Returns:
      This builder for chaining.