Class ApplyRecommendationRequest.Builder

  • All Implemented Interfaces:
    ApplyRecommendationRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    ApplyRecommendationRequest

    public static final class ApplyRecommendationRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ApplyRecommendationRequest.Builder>
    implements ApplyRecommendationRequestOrBuilder
     Request message for [RecommendationService.ApplyRecommendation][google.ads.googleads.v10.services.RecommendationService.ApplyRecommendation].
     
    Protobuf type google.ads.googleads.v10.services.ApplyRecommendationRequest
    • Method Detail

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

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

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

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

        public ApplyRecommendationRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                   int index,
                                                                   java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ApplyRecommendationRequest.Builder>
      • addRepeatedField

        public ApplyRecommendationRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                   java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ApplyRecommendationRequest.Builder>
      • isInitialized

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

        public ApplyRecommendationRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws java.io.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<ApplyRecommendationRequest.Builder>
        Throws:
        java.io.IOException
      • getCustomerId

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

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

        public ApplyRecommendationRequest.Builder setCustomerId​(java.lang.String value)
         Required. The ID of the customer with the recommendation.
         
        string customer_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The customerId to set.
        Returns:
        This builder for chaining.
      • clearCustomerId

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

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

        public java.util.List<ApplyRecommendationOperation> getOperationsList()
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOperationsList in interface ApplyRecommendationRequestOrBuilder
      • getOperationsCount

        public int getOperationsCount()
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOperationsCount in interface ApplyRecommendationRequestOrBuilder
      • getOperations

        public ApplyRecommendationOperation getOperations​(int index)
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOperations in interface ApplyRecommendationRequestOrBuilder
      • setOperations

        public ApplyRecommendationRequest.Builder setOperations​(int index,
                                                                ApplyRecommendationOperation value)
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • setOperations

        public ApplyRecommendationRequest.Builder setOperations​(int index,
                                                                ApplyRecommendationOperation.Builder builderForValue)
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperations

        public ApplyRecommendationRequest.Builder addOperations​(ApplyRecommendationOperation value)
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperations

        public ApplyRecommendationRequest.Builder addOperations​(int index,
                                                                ApplyRecommendationOperation value)
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperations

        public ApplyRecommendationRequest.Builder addOperations​(ApplyRecommendationOperation.Builder builderForValue)
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperations

        public ApplyRecommendationRequest.Builder addOperations​(int index,
                                                                ApplyRecommendationOperation.Builder builderForValue)
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addAllOperations

        public ApplyRecommendationRequest.Builder addAllOperations​(java.lang.Iterable<? extends ApplyRecommendationOperation> values)
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearOperations

        public ApplyRecommendationRequest.Builder clearOperations()
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • removeOperations

        public ApplyRecommendationRequest.Builder removeOperations​(int index)
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • getOperationsBuilder

        public ApplyRecommendationOperation.Builder getOperationsBuilder​(int index)
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • getOperationsOrBuilder

        public ApplyRecommendationOperationOrBuilder getOperationsOrBuilder​(int index)
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOperationsOrBuilder in interface ApplyRecommendationRequestOrBuilder
      • getOperationsOrBuilderList

        public java.util.List<? extends ApplyRecommendationOperationOrBuilder> getOperationsOrBuilderList()
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getOperationsOrBuilderList in interface ApplyRecommendationRequestOrBuilder
      • addOperationsBuilder

        public ApplyRecommendationOperation.Builder addOperationsBuilder()
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • addOperationsBuilder

        public ApplyRecommendationOperation.Builder addOperationsBuilder​(int index)
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation operations = 2 [(.google.api.field_behavior) = REQUIRED];
      • getOperationsBuilderList

        public java.util.List<ApplyRecommendationOperation.Builder> getOperationsBuilderList()
         Required. The list of operations to apply recommendations.
         If partial_failure=false all recommendations should be of the same type
         There is a limit of 100 operations per request.
         
        repeated .google.ads.googleads.v10.services.ApplyRecommendationOperation 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, operations will be carried
         out as a transaction if and only if they are all valid.
         Default is false.
         
        bool partial_failure = 3;
        Specified by:
        getPartialFailure in interface ApplyRecommendationRequestOrBuilder
        Returns:
        The partialFailure.
      • setPartialFailure

        public ApplyRecommendationRequest.Builder setPartialFailure​(boolean value)
         If true, successful operations will be carried out and invalid
         operations will return errors. If false, operations will be carried
         out as a 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

        public ApplyRecommendationRequest.Builder clearPartialFailure()
         If true, successful operations will be carried out and invalid
         operations will return errors. If false, operations will be carried
         out as a transaction if and only if they are all valid.
         Default is false.
         
        bool partial_failure = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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