Home
last modified time | relevance | path

Searched refs:proto3 (Results 1 – 25 of 160) sorted by relevance

1234567

/third_party/protobuf/src/google/protobuf/util/
Djson_util_test.cc52 using proto3::BAR;
53 using proto3::FOO;
54 using proto3::TestAny;
55 using proto3::TestEnumValue;
56 using proto3::TestMap;
57 using proto3::TestMessage;
58 using proto3::TestOneof;
200 orig.set_enum_value(proto3::BAR); in TEST_F()
201 orig.add_repeated_enum_value(proto3::FOO); in TEST_F()
202 orig.add_repeated_enum_value(proto3::BAR); in TEST_F()
[all …]
/third_party/protobuf/docs/
Dimplementing_proto3_presence.md4 proto3. Proto3 optional fields track presence like in proto2. For background
11 generators. All code generators will need to be updated to support proto3
29 Presence tracking was added to proto3 in response to user feedback, both from
31 users](https://github.com/protocolbuffers/protobuf/issues/1606). The [proto3
34 were previously the only supported presence mechanism for proto3. Users have
37 Presence in proto3 uses exactly the same syntax and semantics as in proto2.
45 descriptors already use `LABEL_OPTIONAL` for proto3 singular fields, which do
46 not track presence. There is a lot of existing code that reflects over proto3
47 protos and assumes that `LABEL_OPTIONAL` in proto3 means "no presence." Changing
48 the semantics now would be risky, since old software would likely drop proto3
[all …]
Dfield_presence.md3 … enable experimental support for explicit presence tracking for singular proto3 fields with basic …
9 …as mostly followed _explicit presence_, while proto3 exposes only _no presence_ semantics. Singula…
85 ### Presence in proto3 APIs
87 This table outlines whether presence is tracked for fields in proto3 APIs (both for generated APIs …
103proto3 does not track presence explicitly for repeated fields. Without the `optional` label, proto…
107 …elds under _no presence_ is the corresponding 0-valued enumerator. Under proto3 syntax rules, all …
148 syntax = "proto3";
157 syntax = "proto3";
199 ## How to enable _explicit presence_ in proto3
201 These are the general steps to use the experimental field tracking support for proto3:
[all …]
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DUnknownFieldSetSchema.java37 private final boolean proto3; field in UnknownFieldSetSchema
39 public UnknownFieldSetSchema(boolean proto3) { in UnknownFieldSetSchema() argument
40 this.proto3 = proto3; in UnknownFieldSetSchema()
/third_party/libphonenumber/metadata/src/main/proto/
Dtypes.proto15 syntax = "proto3";
23 // Having a distinct default/unknown enum with a zero value is a proto3 thing.
44 // Having a distinct default/unknown enum with a zero value is a proto3 thing.
64 // Having a distinct default/unknown enum with a zero value is a proto3 thing.
/third_party/protobuf/objectivec/Tests/
Dunittest_runtime_proto3.proto30 syntax = "proto3";
57 // No 'group' in proto3.
76 // No 'group' in proto3.
96 // No 'group' in proto3.
146 // No 'group' in proto3.
/third_party/protobuf/csharp/protos/
Dmap_unittest_proto3.proto33 // uses proto3 messages. This makes it suitable for testing
34 // implementations which only support proto3.
36 // required fields in proto3.
37 syntax = "proto3";
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/protos/src/google/protobuf/
Dmap_unittest_proto3.proto33 // uses proto3 messages. This makes it suitable for testing
34 // implementations which only support proto3.
36 // required fields in proto3.
37 syntax = "proto3";
/third_party/protobuf/benchmarks/datasets/google_message1/proto3/
Dbenchmark_message1_proto3.proto31 // Benchmark messages for proto3.
33 syntax = "proto3";
35 package benchmarks.proto3;
/third_party/protobuf/
DCHANGES.txt30 * Fixed a bug where setting optional proto3 enums with setFooValue() would
77 * [experimental] Singular, non-message typed fields in proto3 now support
82 proto3 presence, see docs/implementing_proto3_presence.md for instructions.
88 * [experimental] Added proto3 presence support.
89 * New descriptor APIs to support proto3 presence.
116 * [experimental] Added proto3 presence support.
133 * [experimental] Added proto3 presence support.
155 * [experimental] Implemented proto3 presence for Ruby. (#7406)
164 * [experimental] Add support for proto3 presence fields in C# (#7382)
183 * Howto doc for implementing proto3 presence in a code generator. (#7407)
[all …]
/third_party/protobuf/docs/csharp/
Dproto2.md1 …clude proto2 support. This does not break existing proto3 support and users may continue to use pr…
8 … with the syntax declaration `syntax = "proto2";`. However, please note, proto3 is still the recom…
14 Messages in proto2 files are very similar to their proto3 counterparts. They expose the usual prope…
163 … * Returns whether a field's value is set. For proto3 fields, throws an InvalidOperationException.
/third_party/protobuf/src/google/protobuf/
Dtest_messages_proto3.proto31 // Test schema for proto3 messages. This test schema is used by:
38 syntax = "proto3";
40 package protobuf_test_messages.proto3;
42 option java_package = "com.google.protobuf_test_messages.proto3";
Dunittest_proto3_lite.proto31 syntax = "proto3";
74 // Groups are not allowed in proto3.
117 // Groups are not allowed in proto3.
Dunittest_proto3_arena_lite.proto31 syntax = "proto3";
75 // Groups are not allowed in proto3.
118 // Groups are not allowed in proto3.
/third_party/protobuf/conformance/
Dconformance.proto31 syntax = "proto3";
69 // https://developers.google.com/protocol-buffers/docs/proto3#json_options
93 // protobuf_test_messages.proto3.TestAllTypes proto (as defined in
111 // protobuf_test_messages.proto3.TestAllTypesProto3 or
/third_party/protobuf/src/google/protobuf/util/internal/testdata/
Doneofs.proto31 // Proto to test proto3 oneofs.
32 syntax = "proto3";
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/
Dtest_import.proto1 syntax = "proto3";
/third_party/protobuf/ruby/tests/
Dtest_import.proto1 syntax = "proto3";
Dtest_ruby_package.proto1 syntax = "proto3";
/third_party/protobuf/src/google/protobuf/compiler/ruby/
Druby_generated_pkg_implicit.proto1 syntax = "proto3";
Druby_generated_pkg_explicit.proto1 syntax = "proto3";
Druby_generated_pkg_explicit_legacy.proto1 syntax = "proto3";
/third_party/protobuf/php/tests/proto/
Dtest_include.proto1 syntax = "proto3";
Dtest_import_descriptor_proto.proto1 syntax = "proto3";
Dtest_service_namespace.proto1 syntax = "proto3";

1234567