Class ApplyRecommendationResponse.Builder

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

    public static final class ApplyRecommendationResponse.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ApplyRecommendationResponse.Builder>
    implements ApplyRecommendationResponseOrBuilder
     Response message for
     [RecommendationService.ApplyRecommendation][google.ads.googleads.v13.services.RecommendationService.ApplyRecommendation].
     
    Protobuf type google.ads.googleads.v13.services.ApplyRecommendationResponse
    • 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<ApplyRecommendationResponse.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<ApplyRecommendationResponse.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public ApplyRecommendationResponse.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<ApplyRecommendationResponse.Builder>
      • isInitialized

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

        public ApplyRecommendationResponse.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<ApplyRecommendationResponse.Builder>
        Throws:
        java.io.IOException
      • getResultsCount

        public int getResultsCount()
         Results of operations to apply recommendations.
         
        repeated .google.ads.googleads.v13.services.ApplyRecommendationResult results = 1;
        Specified by:
        getResultsCount in interface ApplyRecommendationResponseOrBuilder
      • clearResults

        public ApplyRecommendationResponse.Builder clearResults()
         Results of operations to apply recommendations.
         
        repeated .google.ads.googleads.v13.services.ApplyRecommendationResult results = 1;
      • removeResults

        public ApplyRecommendationResponse.Builder removeResults​(int index)
         Results of operations to apply recommendations.
         
        repeated .google.ads.googleads.v13.services.ApplyRecommendationResult results = 1;
      • getResultsBuilder

        public ApplyRecommendationResult.Builder getResultsBuilder​(int index)
         Results of operations to apply recommendations.
         
        repeated .google.ads.googleads.v13.services.ApplyRecommendationResult results = 1;
      • addResultsBuilder

        public ApplyRecommendationResult.Builder addResultsBuilder()
         Results of operations to apply recommendations.
         
        repeated .google.ads.googleads.v13.services.ApplyRecommendationResult results = 1;
      • addResultsBuilder

        public ApplyRecommendationResult.Builder addResultsBuilder​(int index)
         Results of operations to apply recommendations.
         
        repeated .google.ads.googleads.v13.services.ApplyRecommendationResult results = 1;
      • getResultsBuilderList

        public java.util.List<ApplyRecommendationResult.Builder> getResultsBuilderList()
         Results of operations to apply recommendations.
         
        repeated .google.ads.googleads.v13.services.ApplyRecommendationResult results = 1;
      • hasPartialFailureError

        public boolean hasPartialFailureError()
         Errors that pertain to operation failures in the partial failure mode.
         Returned only when partial_failure = true and all errors occur inside the
         operations. If any errors occur outside the operations (for example, auth
         errors) we return the RPC level error.
         
        .google.rpc.Status partial_failure_error = 2;
        Specified by:
        hasPartialFailureError in interface ApplyRecommendationResponseOrBuilder
        Returns:
        Whether the partialFailureError field is set.
      • getPartialFailureError

        public com.google.rpc.Status getPartialFailureError()
         Errors that pertain to operation failures in the partial failure mode.
         Returned only when partial_failure = true and all errors occur inside the
         operations. If any errors occur outside the operations (for example, auth
         errors) we return the RPC level error.
         
        .google.rpc.Status partial_failure_error = 2;
        Specified by:
        getPartialFailureError in interface ApplyRecommendationResponseOrBuilder
        Returns:
        The partialFailureError.
      • setPartialFailureError

        public ApplyRecommendationResponse.Builder setPartialFailureError​(com.google.rpc.Status value)
         Errors that pertain to operation failures in the partial failure mode.
         Returned only when partial_failure = true and all errors occur inside the
         operations. If any errors occur outside the operations (for example, auth
         errors) we return the RPC level error.
         
        .google.rpc.Status partial_failure_error = 2;
      • setPartialFailureError

        public ApplyRecommendationResponse.Builder setPartialFailureError​(com.google.rpc.Status.Builder builderForValue)
         Errors that pertain to operation failures in the partial failure mode.
         Returned only when partial_failure = true and all errors occur inside the
         operations. If any errors occur outside the operations (for example, auth
         errors) we return the RPC level error.
         
        .google.rpc.Status partial_failure_error = 2;
      • mergePartialFailureError

        public ApplyRecommendationResponse.Builder mergePartialFailureError​(com.google.rpc.Status value)
         Errors that pertain to operation failures in the partial failure mode.
         Returned only when partial_failure = true and all errors occur inside the
         operations. If any errors occur outside the operations (for example, auth
         errors) we return the RPC level error.
         
        .google.rpc.Status partial_failure_error = 2;
      • clearPartialFailureError

        public ApplyRecommendationResponse.Builder clearPartialFailureError()
         Errors that pertain to operation failures in the partial failure mode.
         Returned only when partial_failure = true and all errors occur inside the
         operations. If any errors occur outside the operations (for example, auth
         errors) we return the RPC level error.
         
        .google.rpc.Status partial_failure_error = 2;
      • getPartialFailureErrorBuilder

        public com.google.rpc.Status.Builder getPartialFailureErrorBuilder()
         Errors that pertain to operation failures in the partial failure mode.
         Returned only when partial_failure = true and all errors occur inside the
         operations. If any errors occur outside the operations (for example, auth
         errors) we return the RPC level error.
         
        .google.rpc.Status partial_failure_error = 2;
      • getPartialFailureErrorOrBuilder

        public com.google.rpc.StatusOrBuilder getPartialFailureErrorOrBuilder()
         Errors that pertain to operation failures in the partial failure mode.
         Returned only when partial_failure = true and all errors occur inside the
         operations. If any errors occur outside the operations (for example, auth
         errors) we return the RPC level error.
         
        .google.rpc.Status partial_failure_error = 2;
        Specified by:
        getPartialFailureErrorOrBuilder in interface ApplyRecommendationResponseOrBuilder
      • mergeUnknownFields

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