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 { CampaignLabel } from "../resources/campaign_label"; /** * Request message for [CampaignLabelService.MutateCampaignLabels][google.ads.googleads.v11.services.CampaignLabelService.MutateCampaignLabels]. * * @generated from protobuf message google.ads.googleads.v11.services.MutateCampaignLabelsRequest */ export interface MutateCampaignLabelsRequest { /** * Required. ID of the customer whose campaign-label relationships are being modified. * * @generated from protobuf field: string customer_id = 1; */ customerId: string; /** * Required. The list of operations to perform on campaign-label relationships. * * @generated from protobuf field: repeated google.ads.googleads.v11.services.CampaignLabelOperation operations = 2; */ operations: CampaignLabelOperation[]; /** * 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; } /** * A single operation (create, remove) on a campaign-label relationship. * * @generated from protobuf message google.ads.googleads.v11.services.CampaignLabelOperation */ export interface CampaignLabelOperation { /** * @generated from protobuf oneof: operation */ operation: { oneofKind: "create"; /** * Create operation: No resource name is expected for the new campaign-label * relationship. * * @generated from protobuf field: google.ads.googleads.v11.resources.CampaignLabel create = 1; */ create: CampaignLabel; } | { oneofKind: "remove"; /** * Remove operation: A resource name for the campaign-label relationship * being removed, in this format: * * `customers/{customer_id}/campaignLabels/{campaign_id}~{label_id}` * * @generated from protobuf field: string remove = 2; */ remove: string; } | { oneofKind: undefined; }; } /** * Response message for a campaign labels mutate. * * @generated from protobuf message google.ads.googleads.v11.services.MutateCampaignLabelsResponse */ export interface MutateCampaignLabelsResponse { /** * 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 = 3; */ partialFailureError?: Status; /** * All results for the mutate. * * @generated from protobuf field: repeated google.ads.googleads.v11.services.MutateCampaignLabelResult results = 2; */ results: MutateCampaignLabelResult[]; } /** * The result for a campaign label mutate. * * @generated from protobuf message google.ads.googleads.v11.services.MutateCampaignLabelResult */ export interface MutateCampaignLabelResult { /** * Returned for successful operations. * * @generated from protobuf field: string resource_name = 1; */ resourceName: string; } declare class MutateCampaignLabelsRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateCampaignLabelsRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateCampaignLabelsRequest): MutateCampaignLabelsRequest; internalBinaryWrite(message: MutateCampaignLabelsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateCampaignLabelsRequest */ export declare const MutateCampaignLabelsRequest: MutateCampaignLabelsRequest$Type; declare class CampaignLabelOperation$Type extends MessageType { constructor(); create(value?: PartialMessage): CampaignLabelOperation; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CampaignLabelOperation): CampaignLabelOperation; internalBinaryWrite(message: CampaignLabelOperation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.CampaignLabelOperation */ export declare const CampaignLabelOperation: CampaignLabelOperation$Type; declare class MutateCampaignLabelsResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateCampaignLabelsResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateCampaignLabelsResponse): MutateCampaignLabelsResponse; internalBinaryWrite(message: MutateCampaignLabelsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateCampaignLabelsResponse */ export declare const MutateCampaignLabelsResponse: MutateCampaignLabelsResponse$Type; declare class MutateCampaignLabelResult$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateCampaignLabelResult; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateCampaignLabelResult): MutateCampaignLabelResult; internalBinaryWrite(message: MutateCampaignLabelResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateCampaignLabelResult */ export declare const MutateCampaignLabelResult: MutateCampaignLabelResult$Type; /** * @generated ServiceType for protobuf service google.ads.googleads.v11.services.CampaignLabelService */ export declare const CampaignLabelService: ServiceType; export {};