Debian Codegraph @

googleapis/type/expr/expr.pb.go

raw
1 // Copyright 2026 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v4.24.4
19 // source: google/type/expr.proto
20
21 package expr
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // Represents a textual expression in the Common Expression Language (CEL)
39 // syntax. CEL is a C-like expression language. The syntax and semantics of CEL
40 // are documented at https://github.com/google/cel-spec.
41 //
42 // Example (Comparison):
43 //
44 // title: "Summary size limit"
45 // description: "Determines if a summary is less than 100 chars"
46 // expression: "document.summary.size() < 100"
47 //
48 // Example (Equality):
49 //
50 // title: "Requestor is owner"
51 // description: "Determines if requestor is the document owner"
52 // expression: "document.owner == request.auth.claims.email"
53 //
54 // Example (Logic):
55 //
56 // title: "Public documents"
57 // description: "Determine whether the document should be publicly visible"
58 // expression: "document.type != 'private' && document.type != 'internal'"
59 //
60 // Example (Data Manipulation):
61 //
62 // title: "Notification string"
63 // description: "Create a notification string with a timestamp."
64 // expression: "'New message received at ' + string(document.create_time)"
65 //
66 // The exact variables and functions that may be referenced within an expression
67 // are determined by the service that evaluates it. See the service
68 // documentation for additional information.
69 type Expr struct {
70 state protoimpl.MessageState
71 sizeCache protoimpl.SizeCache
72 unknownFields protoimpl.UnknownFields
73
74 // Textual representation of an expression in Common Expression Language
75 // syntax.
76 Expression string `protobuf:"bytes,1,opt,name=expression,proto3" json:"expression,omitempty"`
77 // Optional. Title for the expression, i.e. a short string describing
78 // its purpose. This can be used e.g. in UIs which allow to enter the
79 // expression.
80 Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
81 // Optional. Description of the expression. This is a longer text which
82 // describes the expression, e.g. when hovered over it in a UI.
83 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
84 // Optional. String indicating the location of the expression for error
85 // reporting, e.g. a file name and a position in the file.
86 Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
87 }
88
89 func (x *Expr) Reset() {
90 *x = Expr{}
91 if protoimpl.UnsafeEnabled {
92 mi := &file_google_type_expr_proto_msgTypes[0]
93 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
94 ms.StoreMessageInfo(mi)
95 }
96 }
97
98 func (x *Expr) String() string {
99 return protoimpl.X.MessageStringOf(x)
100 }
101
102 func (*Expr) ProtoMessage() {}
103
104 func (x *Expr) ProtoReflect() protoreflect.Message {
105 mi := &file_google_type_expr_proto_msgTypes[0]
106 if protoimpl.UnsafeEnabled && x != nil {
107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
108 if ms.LoadMessageInfo() == nil {
109 ms.StoreMessageInfo(mi)
110 }
111 return ms
112 }
113 return mi.MessageOf(x)
114 }
115
116 // Deprecated: Use Expr.ProtoReflect.Descriptor instead.
117 func (*Expr) Descriptor() ([]byte, []int) {
118 return file_google_type_expr_proto_rawDescGZIP(), []int{0}
119 }
120
121 func (x *Expr) GetExpression() string {
122 if x != nil {
123 return x.Expression
124 }
125 return ""
126 }
127
128 func (x *Expr) GetTitle() string {
129 if x != nil {
130 return x.Title
131 }
132 return ""
133 }
134
135 func (x *Expr) GetDescription() string {
136 if x != nil {
137 return x.Description
138 }
139 return ""
140 }
141
142 func (x *Expr) GetLocation() string {
143 if x != nil {
144 return x.Location
145 }
146 return ""
147 }
148
149 var File_google_type_expr_proto protoreflect.FileDescriptor
150
151 var file_google_type_expr_proto_rawDesc = []byte{
152 0x0a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65, 0x78,
153 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
154 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0x7a, 0x0a, 0x04, 0x45, 0x78, 0x70, 0x72, 0x12, 0x1e, 0x0a,
155 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
156 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a,
157 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69,
158 0x74, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69,
159 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
160 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
161 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
162 0x6e, 0x42, 0x5a, 0x0a, 0x0f, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
163 0x74, 0x79, 0x70, 0x65, 0x42, 0x09, 0x45, 0x78, 0x70, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
164 0x01, 0x5a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
165 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
166 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x65, 0x78,
167 0x70, 0x72, 0x3b, 0x65, 0x78, 0x70, 0x72, 0xa2, 0x02, 0x03, 0x47, 0x54, 0x50, 0x62, 0x06, 0x70,
168 0x72, 0x6f, 0x74, 0x6f, 0x33,
169 }
170
171 var (
172 file_google_type_expr_proto_rawDescOnce sync.Once
173 file_google_type_expr_proto_rawDescData = file_google_type_expr_proto_rawDesc
174 )
175
176 func file_google_type_expr_proto_rawDescGZIP() []byte {
177 file_google_type_expr_proto_rawDescOnce.Do(func() {
178 file_google_type_expr_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_type_expr_proto_rawDescData)
179 })
180 return file_google_type_expr_proto_rawDescData
181 }
182
183 var file_google_type_expr_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
184 var file_google_type_expr_proto_goTypes = []interface{}{
185 (*Expr)(nil), // 0: google.type.Expr
186 }
187 var file_google_type_expr_proto_depIdxs = []int32{
188 0, // [0:0] is the sub-list for method output_type
189 0, // [0:0] is the sub-list for method input_type
190 0, // [0:0] is the sub-list for extension type_name
191 0, // [0:0] is the sub-list for extension extendee
192 0, // [0:0] is the sub-list for field type_name
193 }
194
195 func init() { file_google_type_expr_proto_init() }
196 func file_google_type_expr_proto_init() {
197 if File_google_type_expr_proto != nil {
198 return
199 }
200 if !protoimpl.UnsafeEnabled {
201 file_google_type_expr_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
202 switch v := v.(*Expr); i {
203 case 0:
204 return &v.state
205 case 1:
206 return &v.sizeCache
207 case 2:
208 return &v.unknownFields
209 default:
210 return nil
211 }
212 }
213 }
214 type x struct{}
215 out := protoimpl.TypeBuilder{
216 File: protoimpl.DescBuilder{
217 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
218 RawDescriptor: file_google_type_expr_proto_rawDesc,
219 NumEnums: 0,
220 NumMessages: 1,
221 NumExtensions: 0,
222 NumServices: 0,
223 },
224 GoTypes: file_google_type_expr_proto_goTypes,
225 DependencyIndexes: file_google_type_expr_proto_depIdxs,
226 MessageInfos: file_google_type_expr_proto_msgTypes,
227 }.Build()
228 File_google_type_expr_proto = out.File
229 file_google_type_expr_proto_rawDesc = nil
230 file_google_type_expr_proto_goTypes = nil
231 file_google_type_expr_proto_depIdxs = nil
232 }