UNPKG

google-ads-api-client

Version:

A friendly and exhaustive client to the google-ads-api, code generated directly from google's published protobuf schema.

63 lines (62 loc) 2.24 kB
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 { TextLabel } from "../common/text_label"; import { LabelStatusEnum_LabelStatus } from "../enums/label_status"; /** * A label. * * @generated from protobuf message google.ads.googleads.v11.resources.Label */ export interface Label { /** * Immutable. Name of the resource. * Label resource names have the form: * `customers/{customer_id}/labels/{label_id}` * * @generated from protobuf field: string resource_name = 1; */ resourceName: string; /** * Output only. ID of the label. Read only. * * @generated from protobuf field: optional int64 id = 6; */ id?: bigint; /** * The name of the label. * * This field is required and should not be empty when creating a new label. * * The length of this string should be between 1 and 80, inclusive. * * @generated from protobuf field: optional string name = 7; */ name?: string; /** * Output only. Status of the label. Read only. * * @generated from protobuf field: google.ads.googleads.v11.enums.LabelStatusEnum.LabelStatus status = 4; */ status: LabelStatusEnum_LabelStatus; /** * A type of label displaying text on a colored background. * * @generated from protobuf field: google.ads.googleads.v11.common.TextLabel text_label = 5; */ textLabel?: TextLabel; } declare class Label$Type extends MessageType<Label> { constructor(); create(value?: PartialMessage<Label>): Label; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Label): Label; internalBinaryWrite(message: Label, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message google.ads.googleads.v11.resources.Label */ export declare const Label: Label$Type; export {};