Home
last modified time | relevance | path

Searched refs:oneofs (Results 1 – 25 of 66) sorted by relevance

123

/third_party/protobuf/docs/
Dimplementing_proto3_presence.md60 proto3 presence. This is the major benefit of synthetic oneofs.
62 This design does leave some cruft in descriptors. Synthetic oneofs are a
65 APIs. It is never safe to drop synthetic oneofs from a proto schema. Code
66 generators can (and should) skip synthetic oneofs when generating a user-facing
68 consumed programmatically, it is important to keep the synthetic oneofs around.
71 oneofs (see [API Changes](#api-changes) below). This is a convenient way to omit
72 synthetic oneofs in code generators.
211 synthetic oneofs.
273 // real_containing_oneof() returns nullptr for synthetic oneofs.
278 #### To iterate over all oneofs
[all …]
/third_party/grpc/test/http2_test/
Dmessages_pb2.py74 oneofs=[
112 oneofs=[
150 oneofs=[
230 oneofs=[
275 oneofs=[
313 oneofs=[
344 oneofs=[
389 oneofs=[
441 oneofs=[
472 oneofs=[
[all …]
/third_party/protobuf/php/src/Google/Protobuf/
DType.php35 private $oneofs; variable in Google\\Protobuf\\Type
140 return $this->oneofs;
153 $this->oneofs = $arr;
/third_party/protobuf/python/google/protobuf/internal/
Dgenerator_test.py293 self.assertEqual(1, len(desc.oneofs))
294 self.assertEqual('oneof_field', desc.oneofs[0].name)
295 self.assertEqual(0, desc.oneofs[0].index)
296 self.assertIs(desc, desc.oneofs[0].containing_type)
297 self.assertIs(desc.oneofs[0], desc.oneofs_by_name['oneof_field'])
302 set([field.name for field in desc.oneofs[0].fields]))
305 self.assertIs(desc.oneofs[0], field_desc.containing_oneof)
/third_party/grpc/examples/python/route_guide/
Droute_guide_pb2.py59 oneofs=[
97 oneofs=[
135 oneofs=[
173 oneofs=[
225 oneofs=[
/third_party/grpc/examples/python/multiplex/
Droute_guide_pb2.py59 oneofs=[
97 oneofs=[
135 oneofs=[
173 oneofs=[
225 oneofs=[
Dhelloworld_pb2.py52 oneofs=[
83 oneofs=[
/third_party/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_reflection_class.cc276 std::vector<std::string> oneofs; in WriteGeneratedCodeInfo() local
277 oneofs.reserve(descriptor->oneof_decl_count()); in WriteGeneratedCodeInfo()
279 oneofs.push_back(UnderscoresToCamelCase(descriptor->oneof_decl(i)->name(), true)); in WriteGeneratedCodeInfo()
281 printer->Print("new[]{ \"$oneofs$\" }, ", "oneofs", Join(oneofs, "\", \"")); in WriteGeneratedCodeInfo()
/third_party/grpc/examples/python/interceptors/default_value/
Dhelloworld_pb2.py52 oneofs=[
83 oneofs=[
/third_party/grpc/examples/python/metadata/
Dhelloworld_pb2.py52 oneofs=[
83 oneofs=[
/third_party/grpc/examples/python/interceptors/headers/
Dhelloworld_pb2.py52 oneofs=[
83 oneofs=[
/third_party/grpc/examples/python/xds/
Dhelloworld_pb2.py52 oneofs=[
83 oneofs=[
/third_party/grpc/examples/python/helloworld/
Dhelloworld_pb2.py52 oneofs=[
83 oneofs=[
/third_party/protobuf/python/google/protobuf/
Ddescriptor.py292 is_extendable=True, extension_ranges=None, oneofs=None, argument
304 is_extendable=True, extension_ranges=None, oneofs=None, argument
351 self.oneofs = oneofs if oneofs is not None else []
352 self.oneofs_by_name = dict((o.name, o) for o in self.oneofs)
353 for oneof in self.oneofs:
/third_party/protobuf/objectivec/
DGPBStruct.pbobjc.m230 static const char *oneofs[] = {
233 [localDescriptor setupOneofs:oneofs
234 count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
260 GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
/third_party/grpc/examples/python/data_transmission/
Ddemo_pb2.py60 oneofs=[
98 oneofs=[
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DDescriptors.java702 return Collections.unmodifiableList(Arrays.asList(oneofs)); in getOneofs()
707 return Collections.unmodifiableList(Arrays.asList(oneofs).subList(0, realOneofCount)); in getRealOneofs()
828 private final OneofDescriptor[] oneofs; field in Descriptors.Descriptor
854 this.oneofs = new OneofDescriptor[0]; in Descriptor()
873 oneofs = new OneofDescriptor[proto.getOneofDeclCount()]; in Descriptor()
875 oneofs[i] = new OneofDescriptor(proto.getOneofDecl(i), file, this, i); in Descriptor()
899 oneofs[i].fields = new FieldDescriptor[oneofs[i].getFieldCount()]; in Descriptor()
900 oneofs[i].fieldCount = 0; in Descriptor()
910 for (OneofDescriptor oneof : this.oneofs) { in Descriptor()
919 this.realOneofCount = this.oneofs.length - syntheticOneofCount; in Descriptor()
[all …]
DDescriptorMessageInfoFactory.java665 private OneofInfo[] oneofs = new OneofInfo[2]; field in DescriptorMessageInfoFactory.OneofState
669 if (index >= oneofs.length) { in getOneof()
671 oneofs = Arrays.copyOf(oneofs, index * 2); in getOneof()
673 OneofInfo info = oneofs[index]; in getOneof()
676 oneofs[index] = info; in getOneof()
/third_party/protobuf/ruby/ext/google/protobuf_c/
Dstorage.c513 layout->oneofs = NULL; in create_layout()
516 layout->oneofs = ALLOC_N(MessageOneof, noneofs); in create_layout()
525 layout->oneofs[i].offset = -1; in create_layout()
653 layout->oneofs[upb_oneofdef_index(oneof)].offset = off; in create_layout()
668 layout->oneofs[upb_oneofdef_index(oneof)].case_offset = off; in create_layout()
681 assert(layout->oneofs[i].offset != -1); in create_layout()
699 xfree(layout->oneofs); in free_layout()
728 layout->oneofs[upb_oneofdef_index(oneof)].case_offset); in slot_oneof_case()
1025 MessageOneof* oneof = &layout->oneofs[i]; in layout_mark()
/third_party/protobuf/src/google/protobuf/util/internal/testdata/
Doneofs.proto31 // Proto to test proto3 oneofs.
34 package proto_util_converter.testing.oneofs;
/third_party/grpc/examples/node/dynamic_codegen/
Dgreeter_server.js29 oneofs: true property
Dgreeter_client.js29 oneofs: true property
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/protos/csharp/protos/
Dunittest_issues.proto99 // but doesn't include oneofs.
100 // TODO: Consider adding oneofs to TestFieldOrderings, although
/third_party/protobuf/csharp/protos/
Dunittest_issues.proto100 // but doesn't include oneofs.
101 // TODO: Consider adding oneofs to TestFieldOrderings, although
/third_party/grpc/third_party/upb/upb/
Ddef.c61 const upb_oneofdef *oneofs; member
637 return &m->oneofs[i]; in upb_msgdef_oneof()
741 return o - o->parent->oneofs; in upb_oneofdef_index()
1266 upb_oneofdef *mutable_oneofs = (upb_oneofdef*)m->oneofs; in finalize_oneofs()
1392 o = (upb_oneofdef*)&m->oneofs[m->oneof_count++]; in create_oneofdef()
1685 oneof = (upb_oneofdef*)&m->oneofs[oneof_index]; in create_fielddef()
1780 const google_protobuf_OneofDescriptorProto *const *oneofs; in create_msgdef() local
1794 oneofs = google_protobuf_DescriptorProto_oneof_decl(msg_proto, &n_oneof); in create_msgdef()
1820 m->oneofs = symtab_alloc(ctx, sizeof(*m->oneofs) * n_oneof); in create_msgdef()
1822 create_oneofdef(ctx, m, oneofs[i]); in create_msgdef()

123