Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

test: unknown fields are preserved#160

Merged
software-dov merged 2 commits intogoogleapis:masterfrom
software-dov:unknown-fields
Nov 3, 2020
Merged

test: unknown fields are preserved#160
software-dov merged 2 commits intogoogleapis:masterfrom
software-dov:unknown-fields

Conversation

@software-dov
Copy link
Copy Markdown
Contributor

Consider the following:

message Old {
        string name = 1;
}

message New {
        string name = 1;
        string path = 2;
}

We can think of New as being a minor version release update of Old.
If a client using the older version receives a message over the wire
from a server using the newer version, it is desirable that any new,
unknown fields are preserved. These can store context the server
needs, which is important in get/modify/set loops.

Consider the following:

```proto
message Old {
        string name = 1;
}

message New {
        string name = 1;
        string path = 2;
}
```

We can think of `New` as being a minor version release update of `Old`.
If a client using the older version receives a message over the wire
from a server using the newer version, it is desirable that any new,
unknown fields are preserved. These can store context the server
needs, which is important in get/modify/set loops.
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 3, 2020
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 3, 2020

Codecov Report

Merging #160 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #160   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           20        20           
  Lines          863       862    -1     
  Branches       149       149           
=========================================
- Hits           863       862    -1     
Impacted Files Coverage Δ
proto/message.py 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b12971a...2ac8f1a. Read the comment docs.

@software-dov software-dov merged commit fef7983 into googleapis:master Nov 3, 2020
@software-dov software-dov deleted the unknown-fields branch November 3, 2020 20:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants