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 { CampaignSharedSet } from "../resources/campaign_shared_set"; import { ResponseContentTypeEnum_ResponseContentType } from "../enums/response_content_type"; /** * Request message for [CampaignSharedSetService.MutateCampaignSharedSets][google.ads.googleads.v11.services.CampaignSharedSetService.MutateCampaignSharedSets]. * * @generated from protobuf message google.ads.googleads.v11.services.MutateCampaignSharedSetsRequest */ export interface MutateCampaignSharedSetsRequest { /** * Required. The ID of the customer whose campaign shared sets are being modified. * * @generated from protobuf field: string customer_id = 1; */ customerId: string; /** * Required. The list of operations to perform on individual campaign shared sets. * * @generated from protobuf field: repeated google.ads.googleads.v11.services.CampaignSharedSetOperation operations = 2; */ operations: CampaignSharedSetOperation[]; /** * 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 campaign shared set. * * @generated from protobuf message google.ads.googleads.v11.services.CampaignSharedSetOperation */ export interface CampaignSharedSetOperation { /** * @generated from protobuf oneof: operation */ operation: { oneofKind: "create"; /** * Create operation: No resource name is expected for the new campaign * shared set. * * @generated from protobuf field: google.ads.googleads.v11.resources.CampaignSharedSet create = 1; */ create: CampaignSharedSet; } | { oneofKind: "remove"; /** * Remove operation: A resource name for the removed campaign shared set is * expected, in this format: * * `customers/{customer_id}/campaignSharedSets/{campaign_id}~{shared_set_id}` * * @generated from protobuf field: string remove = 3; */ remove: string; } | { oneofKind: undefined; }; } /** * Response message for a campaign shared set mutate. * * @generated from protobuf message google.ads.googleads.v11.services.MutateCampaignSharedSetsResponse */ export interface MutateCampaignSharedSetsResponse { /** * 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.MutateCampaignSharedSetResult results = 2; */ results: MutateCampaignSharedSetResult[]; } /** * The result for the campaign shared set mutate. * * @generated from protobuf message google.ads.googleads.v11.services.MutateCampaignSharedSetResult */ export interface MutateCampaignSharedSetResult { /** * Returned for successful operations. * * @generated from protobuf field: string resource_name = 1; */ resourceName: string; /** * The mutated campaign shared set 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.CampaignSharedSet campaign_shared_set = 2; */ campaignSharedSet?: CampaignSharedSet; } declare class MutateCampaignSharedSetsRequest$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateCampaignSharedSetsRequest; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateCampaignSharedSetsRequest): MutateCampaignSharedSetsRequest; internalBinaryWrite(message: MutateCampaignSharedSetsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateCampaignSharedSetsRequest */ export declare const MutateCampaignSharedSetsRequest: MutateCampaignSharedSetsRequest$Type; declare class CampaignSharedSetOperation$Type extends MessageType { constructor(); create(value?: PartialMessage): CampaignSharedSetOperation; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CampaignSharedSetOperation): CampaignSharedSetOperation; internalBinaryWrite(message: CampaignSharedSetOperation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.CampaignSharedSetOperation */ export declare const CampaignSharedSetOperation: CampaignSharedSetOperation$Type; declare class MutateCampaignSharedSetsResponse$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateCampaignSharedSetsResponse; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateCampaignSharedSetsResponse): MutateCampaignSharedSetsResponse; internalBinaryWrite(message: MutateCampaignSharedSetsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateCampaignSharedSetsResponse */ export declare const MutateCampaignSharedSetsResponse: MutateCampaignSharedSetsResponse$Type; declare class MutateCampaignSharedSetResult$Type extends MessageType { constructor(); create(value?: PartialMessage): MutateCampaignSharedSetResult; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MutateCampaignSharedSetResult): MutateCampaignSharedSetResult; internalBinaryWrite(message: MutateCampaignSharedSetResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.services.MutateCampaignSharedSetResult */ export declare const MutateCampaignSharedSetResult: MutateCampaignSharedSetResult$Type; /** * @generated ServiceType for protobuf service google.ads.googleads.v11.services.CampaignSharedSetService */ export declare const CampaignSharedSetService: ServiceType; export {};