//#region src/wkt/fieldmask.d.ts /** * One field entry in a {@link FieldMaskSchema}: its wire-format name and, for message-typed fields, a lazy reference to the nested message's schema. Array, map, enum, and scalar fields omit `children`. */ interface FieldMaskSchemaField { readonly wire: string; readonly children?: () => FieldMaskSchema; } /** * Structural description of one message's FieldMask-reachable fields. Maps each typescript field name to its wire-format name and, for message-typed fields, a lazy `() => FieldMaskSchema` reference that lets recursive and mutually-recursive messages describe themselves. */ type FieldMaskSchema = Readonly>; /** * A field mask implementing google.protobuf.FieldMask semantics. */ declare class FieldMask { private readonly _tag; private readonly paths; private constructor(); /** * Build a FieldMask from typescript field name paths against the target message's schema. Validates every path by walking each segment through the schema and throws Error when any segment fails. * * Reserved for generated per-message factories; user code should call the factory (e.g. `alertFieldMask(...)`), which supplies the schema before delegating here. * * @internal */ static build(paths: string[], schema: FieldMaskSchema): FieldMask; /** * Serialize the mask to the wire-format string. */ toString(): string; } //#endregion export { FieldMask, FieldMaskSchema, FieldMaskSchemaField }; //# sourceMappingURL=fieldmask.d.ts.map