// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // @generated by protoc-gen-es v1.10.0 // @generated from file google/api/expr/v1alpha1/eval.proto (package google.api.expr.v1alpha1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import type { Value } from "./value_pb.js"; import type { Status } from "../../../rpc/status_pb.js"; /** * The state of an evaluation. * * Can represent an initial, partial, or completed state of evaluation. * * @generated from message google.api.expr.v1alpha1.EvalState */ export declare class EvalState extends Message { /** * The unique values referenced in this message. * * @generated from field: repeated google.api.expr.v1alpha1.ExprValue values = 1; */ values: ExprValue[]; /** * An ordered list of results. * * Tracks the flow of evaluation through the expression. * May be sparse. * * @generated from field: repeated google.api.expr.v1alpha1.EvalState.Result results = 3; */ results: EvalState_Result[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "google.api.expr.v1alpha1.EvalState"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EvalState; static fromJson(jsonValue: JsonValue, options?: Partial): EvalState; static fromJsonString(jsonString: string, options?: Partial): EvalState; static equals(a: EvalState | PlainMessage | undefined, b: EvalState | PlainMessage | undefined): boolean; } /** * A single evaluation result. * * @generated from message google.api.expr.v1alpha1.EvalState.Result */ export declare class EvalState_Result extends Message { /** * The id of the expression this result is for. * * @generated from field: int64 expr = 1; */ expr: bigint; /** * The index in `values` of the resulting value. * * @generated from field: int64 value = 2; */ value: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "google.api.expr.v1alpha1.EvalState.Result"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EvalState_Result; static fromJson(jsonValue: JsonValue, options?: Partial): EvalState_Result; static fromJsonString(jsonString: string, options?: Partial): EvalState_Result; static equals(a: EvalState_Result | PlainMessage | undefined, b: EvalState_Result | PlainMessage | undefined): boolean; } /** * The value of an evaluated expression. * * @generated from message google.api.expr.v1alpha1.ExprValue */ export declare class ExprValue extends Message { /** * An expression can resolve to a value, error or unknown. * * @generated from oneof google.api.expr.v1alpha1.ExprValue.kind */ kind: { /** * A concrete value. * * @generated from field: google.api.expr.v1alpha1.Value value = 1; */ value: Value; case: "value"; } | { /** * The set of errors in the critical path of evaluation. * * Only errors in the critical path are included. For example, * `( || true) && ` will only result in ``, * while ` || ` will result in both `` and * ``. * * Errors caused by the presence of other errors are not included in the * set. For example `.foo`, `foo()`, and ` + 1` will * only result in ``. * * Multiple errors *might* be included when evaluation could result * in different errors. For example ` + ` and * `foo(, )` may result in ``, `` or both. * The exact subset of errors included for this case is unspecified and * depends on the implementation details of the evaluator. * * @generated from field: google.api.expr.v1alpha1.ErrorSet error = 2; */ value: ErrorSet; case: "error"; } | { /** * The set of unknowns in the critical path of evaluation. * * Unknown behaves identically to Error with regards to propagation. * Specifically, only unknowns in the critical path are included, unknowns * caused by the presence of other unknowns are not included, and multiple * unknowns *might* be included included when evaluation could result in * different unknowns. For example: * * ( || true) && -> * || -> * .foo -> * foo() -> * + -> or * * Unknown takes precedence over Error in cases where a `Value` can short * circuit the result: * * || -> * && -> * * Errors take precedence in all other cases: * * + -> * foo(, ) -> * * @generated from field: google.api.expr.v1alpha1.UnknownSet unknown = 3; */ value: UnknownSet; case: "unknown"; } | { case: undefined; value?: undefined }; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "google.api.expr.v1alpha1.ExprValue"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ExprValue; static fromJson(jsonValue: JsonValue, options?: Partial): ExprValue; static fromJsonString(jsonString: string, options?: Partial): ExprValue; static equals(a: ExprValue | PlainMessage | undefined, b: ExprValue | PlainMessage | undefined): boolean; } /** * A set of errors. * * The errors included depend on the context. See `ExprValue.error`. * * @generated from message google.api.expr.v1alpha1.ErrorSet */ export declare class ErrorSet extends Message { /** * The errors in the set. * * @generated from field: repeated google.rpc.Status errors = 1; */ errors: Status[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "google.api.expr.v1alpha1.ErrorSet"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ErrorSet; static fromJson(jsonValue: JsonValue, options?: Partial): ErrorSet; static fromJsonString(jsonString: string, options?: Partial): ErrorSet; static equals(a: ErrorSet | PlainMessage | undefined, b: ErrorSet | PlainMessage | undefined): boolean; } /** * A set of expressions for which the value is unknown. * * The unknowns included depend on the context. See `ExprValue.unknown`. * * @generated from message google.api.expr.v1alpha1.UnknownSet */ export declare class UnknownSet extends Message { /** * The ids of the expressions with unknown values. * * @generated from field: repeated int64 exprs = 1; */ exprs: bigint[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "google.api.expr.v1alpha1.UnknownSet"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): UnknownSet; static fromJson(jsonValue: JsonValue, options?: Partial): UnknownSet; static fromJsonString(jsonString: string, options?: Partial): UnknownSet; static equals(a: UnknownSet | PlainMessage | undefined, b: UnknownSet | PlainMessage | undefined): boolean; }