Skip to content

Commit

Permalink
Merge tag 'refs/tags/sync-piper' into sync-stage
Browse files Browse the repository at this point in the history
  • Loading branch information
esorot committed Jul 11, 2022
2 parents f1f71e2 + f4dfa1a commit 9931365
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
14 changes: 13 additions & 1 deletion google/protobuf/descriptor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -916,8 +916,20 @@ message GeneratedCodeInfo {
optional int32 begin = 3;

// Identifies the ending offset in bytes in the generated code that
// relates to the identified offset. The end offset should be one past
// relates to the identified object. The end offset should be one past
// the last relevant byte (so the length of the text = end - begin).
optional int32 end = 4;

// Represents the identified object's effect on the element in the original
// .proto file.
enum Semantic {
// There is no effect or the effect is indescribable.
NONE = 0;
// The element is set or otherwise mutated.
SET = 1;
// An alias to the element is returned.
ALIAS = 2;
}
optional Semantic semantic = 5;
}
}
6 changes: 6 additions & 0 deletions google/protobuf/util/json_format_proto3.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ option java_outer_classname = "JsonFormatProto3";
enum EnumType {
FOO = 0;
BAR = 1;
TLSv1_2 = 2;
}

message MessageType {
Expand Down Expand Up @@ -179,6 +180,11 @@ message TestBoolValue {
map<bool, int32> bool_map = 2;
}

message TestNullValue {
google.protobuf.NullValue null_value = 20;
repeated google.protobuf.NullValue repeated_null_value = 21;
}

message TestCustomJsonName {
int32 value = 1 [json_name = "@value"];
}
Expand Down

0 comments on commit 9931365

Please sign in to comment.