Skip to content

Commit

Permalink
Down integrate from Google internal.
Browse files Browse the repository at this point in the history
  • Loading branch information
liujisi committed Apr 28, 2016
1 parent 9edc144 commit daa9f60
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions google/protobuf/any.proto
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ message Any {
// * If no schema is provided, `https` is assumed.
// * The last segment of the URL's path must represent the fully
// qualified name of the type (as in `path/google.protobuf.Duration`).
// The name should be in a canonical form (e.g., leading "." is
// not accepted).
// * An HTTP GET on the URL must yield a [google.protobuf.Type][]
// value in binary format, or produce an error.
// * Applications are allowed to cache lookup results based on the
Expand Down
2 changes: 1 addition & 1 deletion google/protobuf/field_mask.proto
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ option java_generate_equals_and_hash = true;
// operation applies to all fields (as if a FieldMask of all fields
// had been specified).
//
// Note that a field mask does not necessarily applies to the
// Note that a field mask does not necessarily apply to the
// top-level response message. In case of a REST get operation, the
// field mask applies directly to the response, but in case of a REST
// list operation, the mask instead applies to each individual message
Expand Down
9 changes: 9 additions & 0 deletions google/protobuf/util/internal/testdata/books.proto
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,12 @@ message NestedBook {
message BadNestedBook {
repeated uint32 book = 1 [packed=true]; // Packed to optional message.
}

// A recursively defined message.
message Cyclic {
optional int32 m_int = 1;
optional string m_str = 2;
optional Book m_book = 3;
repeated Author m_author = 5;
optional Cyclic m_cyclic = 4;
}

0 comments on commit daa9f60

Please sign in to comment.