@nebius/js-sdk - v0.2.54
    Preparing search index...

    Interface FieldMaskRules

    FieldMaskRules describe rules applied exclusively to the google.protobuf.FieldMask well-known type.

    interface FieldMaskRules {
        "[customJson]"?: () => unknown;
        "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>;
        $type: "buf.validate.FieldMaskRules";
        const?: string[];
        example: string[][];
        in: string[];
        notIn: string[];
        [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined;
    }

    Indexable

    • [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined

      FieldMaskRules describe rules applied exclusively to the google.protobuf.FieldMask well-known type.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • FieldMaskRules describe rules applied exclusively to the google.protobuf.FieldMask well-known type.

            Returns unknown

      • undefined
    Index
    "[customJson]"?: () => unknown

    Returns a safe value for JSON logs.

    Type Declaration

      • (): unknown
      • Returns a safe value for JSON logs.

        Returns unknown

    "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>

    Preserves protobuf fields that this SDK version does not recognize.

    $type: "buf.validate.FieldMaskRules"

    Contains the fully qualified protobuf type name.

    const?: string[]

    const dictates that the field must match the specified value of the google.protobuf.FieldMask type exactly. If the field's value deviates from the specified value, an error message will be generated.

    message MyFieldMask {
    // value must equal ["a"]
    google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask.const = {
    paths: ["a"]
    }];
    }
    example: string[][]

    example specifies values that the field may have. These values SHOULD conform to other rules. example values will not impact validation but may be used as helpful guidance on how to populate the given field.

    message MyFieldMask {
    google.protobuf.FieldMask value = 1 [
    (buf.validate.field).field_mask.example = { paths: ["a", "b"] },
    (buf.validate.field).field_mask.example = { paths: ["c.a", "d"] },
    ];
    }
    in: string[]

    in requires the field value to only contain paths matching specified values or their subpaths. If any of the field value's paths doesn't match the rule, an error message is generated. See: https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask

    message MyFieldMask {
    // The `value` FieldMask must only contain paths listed in `in`.
    google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask = {
    in: ["a", "b", "c.a"]
    }];
    }
    notIn: string[]

    not_in requires the field value to not contain paths matching specified values or their subpaths. If any of the field value's paths matches the rule, an error message is generated. See: https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask

    message MyFieldMask {
    // The `value` FieldMask shall not contain paths listed in `not_in`.
    google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask = {
    not_in: ["forbidden", "immutable", "c.a"]
    }];
    }