import { ServiceType } from "@protobuf-ts/runtime-rpc"; import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; import { Status } from "../../google/rpc/status"; import { CustomerCustomizer } from "../resources/customer_customizer"; import { ResponseContentTypeEnum_ResponseContentType } from "../enums/response_content_type"; /** * Request message for * [CustomerCustomizerService.MutateCustomerCustomizers][google.ads.googleads.v11.services.CustomerCustomizerService.MutateCustomerCustomizers]. * * @generated from protobuf message google.ads.googleads.v11.services.MutateCustomerCustomizersRequest */ export interface MutateCustomerCustomizersRequest { /** * Required. The ID of the customer whose customer customizers are being modified. * * @generated from protobuf field: string customer_id = 1; */ customerId: string; /** * Required. The list of operations to perform on individual customer customizers. * * @generated from protobuf field: repeated google.ads.googleads.v11.services.CustomerCustomizerOperation operations = 2; */ operations: CustomerCustomizerOperation[]; /** * 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. * * @generated from protobuf field: bool partial_failure = 3; */ partialFailure: boolean; /** * If true, the request is validated but not executed. Only errors are * returned, not results. * * @generated from protobuf field: bool validate_only = 4; */ validateOnly: boolean; /** * The response content type setting. Determines whether the mutable resource * or just the resource name should be returned post mutation. * * @generated from protobuf field: google.ads.googleads.v11.enums.ResponseContentTypeEnum.ResponseContentType response_content_type = 5; */ responseContentType: ResponseContentTypeEnum_ResponseContentType; } /** * A single operation (create, remove) on an customizer attribute. * * @generated from protobuf message google.ads.googleads.v11.services.CustomerCustomizerOperation */ export interface CustomerCustomizerOperation { /** * @generated from protobuf oneof: operation */ operation: { oneofKind: "create"; /** * Create operation: No resource name is expected for the new customer * customizer * * @generated from protobuf field: google.ads.googleads.v11.resources.CustomerCustomizer create = 1; */ create: CustomerCustomizer; } | { oneofKind: "remove"; /** * Remove operation: A resource name for the removed customer customizer is * expected, in this format: * `customers/{customer_id}/customerCustomizers/{customizer_attribute_id}` * * @generated from protobuf field: string remove = 2; */ remove: string; } | { oneofKind: undefined; }; } /** * Response message for an customizer attribute mutate. * * @generated from protobuf message google.ads.googleads.v11.services.MutateCustomerCustomizersResponse */ export interface MutateCustomerCustomizersResponse { /** * All results for the mutate. * * @generated from protobuf field: repeated google.ads.googleads.v11.services.MutateCustomerCustomizerResult results = 1; */ results: MutateCustomerCustomizerResult[]; /** * 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 an RPC level error. * * @generated from protobuf field: google.rpc.Status partial_failure_error = 2; */ partialFailureError?: Status; } /** * The result for the customizer attribute mutate. * * @generated from protobuf message google.ads.googleads.v11.services.MutateCustomerCustomizerResult */ export interface MutateCustomerCustomizerResult { /** * Returned for successful operations. * * @generated from protobuf field: string resource_name = 1; */ resourceName: string; /** * The mutated CustomerCustomizer with only mutable fields after mutate. * The field will only be returned when response_content_type is set to * "MUTABLE_RESOURCE". * * @generated from protobuf field: google.ads.googleads.v11.resources.CustomerCustomizer customer_customizer = 2; */ customerCustomizer?: CustomerCustomizer; } declare class MutateCustomerCustomizersRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateCustomerCustomizersRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateCustomerCustomizersRequest): MutateCustomerCustomizersRequest; internalBinaryWrite(message: MutateCustomerCustomizersRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateCustomerCustomizersRequest */ export declare const MutateCustomerCustomizersRequest: MutateCustomerCustomizersRequest$Type; declare class CustomerCustomizerOperation$Type extends MessageType { constructor(); create(value?: PartialMessage): CustomerCustomizerOperation; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CustomerCustomizerOperation): CustomerCustomizerOperation; internalBinaryWrite(message: CustomerCustomizerOperation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.CustomerCustomizerOperation */ export declare const CustomerCustomizerOperation: CustomerCustomizerOperation$Type; declare class MutateCustomerCustomizersResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateCustomerCustomizersResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateCustomerCustomizersResponse): MutateCustomerCustomizersResponse; internalBinaryWrite(message: MutateCustomerCustomizersResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateCustomerCustomizersResponse */ export declare const MutateCustomerCustomizersResponse: MutateCustomerCustomizersResponse$Type; declare class MutateCustomerCustomizerResult$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateCustomerCustomizerResult; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateCustomerCustomizerResult): MutateCustomerCustomizerResult; internalBinaryWrite(message: MutateCustomerCustomizerResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateCustomerCustomizerResult */ export declare const MutateCustomerCustomizerResult: MutateCustomerCustomizerResult$Type; /** * @generated ServiceType for protobuf service google.ads.googleads.v11.services.CustomerCustomizerService */ export declare const CustomerCustomizerService: ServiceType; export {};