Skip to content

Commit 455e8ce

Browse files
Endpoints Runtime Teamdchakarwarti
authored andcommitted
Internal change
PiperOrigin-RevId: 642194849
1 parent f3bda87 commit 455e8ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+82
-808
lines changed

.bazelrc

Lines changed: 0 additions & 126 deletions
This file was deleted.

.bazelversion

Lines changed: 0 additions & 1 deletion
This file was deleted.

BUILD.bazel

Lines changed: 0 additions & 27 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

LICENSE

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
Copyright 2023 Google Inc. All rights reserved.
21

3-
Apache License
2+
Apache License
43
Version 2.0, January 2004
54
http://www.apache.org/licenses/
65

@@ -180,15 +179,15 @@ Copyright 2023 Google Inc. All rights reserved.
180179
APPENDIX: How to apply the Apache License to your work.
181180

182181
To apply the Apache License to your work, attach the following
183-
boilerplate notice, with the fields enclosed by brackets "{}"
182+
boilerplate notice, with the fields enclosed by brackets "[]"
184183
replaced with your own identifying information. (Don't include
185184
the brackets!) The text should be enclosed in the appropriate
186185
comment syntax for the file format. We also recommend that a
187186
file or class name and description of purpose be included on the
188187
same "printed page" as the copyright notice for easier
189188
identification within third-party archives.
190189

191-
Copyright 2016 Google Inc
190+
Copyright [yyyy] [name of copyright owner]
192191

193192
Licensed under the Apache License, Version 2.0 (the "License");
194193
you may not use this file except in compliance with the License.
@@ -200,4 +199,4 @@ Copyright 2023 Google Inc. All rights reserved.
200199
distributed under the License is distributed on an "AS IS" BASIS,
201200
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202201
See the License for the specific language governing permissions and
203-
limitations under the License.
202+
limitations under the License.

README.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
11
# proto-processing-lib
22

3-
proto-processing-lib is a library that provides utility functionality for proto field scrubbing.
3+
proto-processing-lib is a library that provides utility functionality for proto
4+
field scrubbing.
45

5-
This folder is the source-of-truth.
6+
## FieldMask AIP-161 compatibility
7+
8+
The field mask implementation in this library currently has some minor
9+
inconsistencies with the [AIP-161](https://google.aip.dev/161) specification,
10+
particularly around resource update behavior. While the current functionality is
11+
robust for most use cases, please be aware of this nuance when working with
12+
field masks in your applications.
13+
14+
### Proto Processing Library's Field Mask Implementation: Differences from [AIP-161](https://google.aip.dev/161) Standard
15+
16+
Proto Processing Library's implementation of field masks diverges from the
17+
AIP-161 standard in the following key ways. This table summarizes the
18+
similarities/differences:
19+
20+
| Feature | AIP-161 (Standard) | Library Implementation |
21+
| :--------------- | :-------------------------- | :------------------------- |
22+
| Repeated fields | Restricted except at path | No restriction, allowed on |
23+
: : end : non-leaf nodes :
24+
| Map keys | String or integer | String (escaped) |
25+
| Wildcards | Supported for repeated | Supported |
26+
: : fields/maps : :
27+
| Struct traversal | Supported using '.' | Supported |
28+
| Map traversal | Supported using '.', keys: | Supported (string/int |
29+
: : string/int : keys), '.' insertion not :
30+
: : : supported :
31+
| Validation | Ignore invalid reads, error | Error on invalid field |
32+
: : on writes : names :
33+
| Update behavior | Read after masked update | Not supported |
34+
: : returns same : :
35+
| Intersection | Not explicitly mentioned | Supported, returns |
36+
: : : intersection of two :
37+
: : : FieldMask trees :

WORKSPACE

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)