Home
last modified time | relevance | path

Searched refs:oneofs (Results 1 - 23 of 23) sorted by relevance

/third_party/protobuf/php/src/Google/Protobuf/
H A DType.php33 * Generated from protobuf field <code>repeated string oneofs = 3;</code>
35 private $oneofs; variable
65 * @type string[]|\Google\Protobuf\Internal\RepeatedField $oneofs
135 * Generated from protobuf field <code>repeated string oneofs = 3;</code>
140 return $this->oneofs;
146 * Generated from protobuf field <code>repeated string oneofs = 3;</code>
153 $this->oneofs = $arr; variable
/third_party/protobuf/python/google/protobuf/internal/
H A 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)
H A Ddescriptor_pool_test.py239 self.assertEqual(1, len(msg2.oneofs))
241 self.assertEqual(2, len(msg2.oneofs[0].fields))
243 self.assertEqual(msg2.oneofs[0],
245 self.assertIn(msg2.fields_by_name[name], msg2.oneofs[0].fields)
H A Dpython_message.py861 for oneof in message_descriptor.oneofs:
/third_party/protobuf/src/google/protobuf/compiler/csharp/
H A Dcsharp_reflection_class.cc244 // corresponding to fields, names corresponding to oneofs, nested enums, and nested types. Each array part
276 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/protobuf/java/core/src/main/java/com/google/protobuf/
H A 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()
H A DDescriptors.java700 /** Get a list of this message type's oneofs. */
702 return Collections.unmodifiableList(Arrays.asList(oneofs)); in getOneofs()
705 /** Get a list of this message type's real oneofs. */
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[ in Descriptor()
[all...]
H A DGeneratedMessageV3.java1926 oneofs = new OneofAccessor[descriptor.getOneofs().size()]; in FieldAccessorTable()
1988 int oneofsSize = oneofs.length; in ensureFieldAccessorsInitialized()
1990 oneofs[i] = in ensureFieldAccessorsInitialized()
2003 private final OneofAccessor[] oneofs; field in GeneratedMessageV3.FieldAccessorTable
2026 return oneofs[oneof.getIndex()]; in getOneof()
H A DGeneratedMessage.java2054 oneofs = new OneofAccessor[descriptor.getOneofs().size()]; in FieldAccessorTable()
2121 int oneofsSize = oneofs.length; in ensureFieldAccessorsInitialized()
2123 oneofs[i] = new OneofAccessor( in ensureFieldAccessorsInitialized()
2136 private final OneofAccessor[] oneofs; field in GeneratedMessage.FieldAccessorTable
2159 return oneofs[oneof.getIndex()]; in getOneof()
/third_party/protobuf/python/google/protobuf/
H A Ddescriptor.py278 oneofs (list[OneofDescriptor]): The list of descriptors for oneof fields
281 :attr:`oneofs`, but indexed by "name" attribute.
292 is_extendable=True, extension_ranges=None, oneofs=None,
304 is_extendable=True, extension_ranges=None, oneofs=None,
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:
H A Ddescriptor_pool.py866 oneofs = [
884 oneofs=oneofs,
904 oneofs[oneof_index].fields.append(fields[field_index])
905 fields[field_index].containing_oneof = oneofs[oneof_index]
/third_party/protobuf/ruby/ext/google/protobuf_c/
H A 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()
619 // Handle oneofs now -- we iterate over oneofs specifically and allocate only 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_inde in slot_oneof_case()
[all...]
H A Dprotobuf.h526 MessageOneof* oneofs; member
H A Ddefs.c1805 const google_protobuf_OneofDescriptorProto*const* oneofs = in MessageBuilderContext_add_synthetic_oneofs() local
1811 // We have to build a set of all names, to ensure that synthetic oneofs are in MessageBuilderContext_add_synthetic_oneofs()
1818 upb_strview name = google_protobuf_OneofDescriptorProto_name(oneofs[i]); in MessageBuilderContext_add_synthetic_oneofs()
H A Dupb.c3032 const upb_oneofdef *oneofs; member
3262 upb_oneofdef *mutable_oneofs = (upb_oneofdef*)m->oneofs; in check_oneofs()
3274 s, "Synthetic oneofs must be after all other oneofs: %s", in check_oneofs()
3750 /* We need to skip past fields to return only oneofs. */ in upb_msg_oneof_next()
4215 o = (upb_oneofdef*)&m->oneofs[m->oneof_count++]; in create_oneofdef()
4494 oneof = (upb_oneofdef*)&m->oneofs[oneof_index]; in create_fielddef()
4583 const google_protobuf_OneofDescriptorProto *const *oneofs; in create_msgdef() local
4617 oneofs = google_protobuf_DescriptorProto_oneof_decl(msg_proto, &n); in create_msgdef()
4619 m->oneofs in create_msgdef()
[all...]
H A Dencode_decode.c487 // Handlers that set primitive values in oneofs.
941 desc->layout->oneofs[upb_oneofdef_index(oneof)].case_offset + in add_handlers_for_message()
/third_party/protobuf/objectivec/
H A DGPBDescriptor.h72 @property(nonatomic, readonly, strong, nullable) NSArray<GPBOneofDescriptor*> *oneofs; variable
/third_party/protobuf/python/google/protobuf/pyext/
H A Ddescriptor_containers.cc1262 namespace oneofs { namespace
1304 } // namespace oneofs
1307 return descriptor::NewMappingByName(&oneofs::ContainerDef, descriptor); in NewMessageOneofsByName()
1311 return descriptor::NewSequence(&oneofs::ContainerDef, descriptor); in NewMessageOneofsSeq()
/third_party/protobuf/src/google/protobuf/util/
H A Dtype_resolver_util_test.cc107 return type.oneofs(field->oneof_index() - 1) == oneof_name; in FieldInOneof()
/third_party/protobuf/src/google/protobuf/
H A Dtype.pb.h320 // repeated string oneofs = 3;
326 const std::string& oneofs(int index) const;
337 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& oneofs() const;
1458 // repeated string oneofs = 3;
1469 // @@protoc_insertion_point(field_add_mutable:google.protobuf.Type.oneofs) in add_oneofs()
1475 inline const std::string& Type::oneofs(int index) const { in oneofs() function in Type
1476 // @@protoc_insertion_point(field_get:google.protobuf.Type.oneofs) in oneofs()
1480 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.oneofs) in mutable_oneofs()
1484 // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs) in set_oneofs()
1488 // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs) in set_oneofs()
1522 Type::oneofs() const { oneofs() function in Type
[all...]
/third_party/protobuf/php/ext/google/protobuf/
H A Dphp-upb.c3477 const upb_oneofdef *oneofs; member
3707 upb_oneofdef *mutable_oneofs = (upb_oneofdef*)m->oneofs; in check_oneofs()
3719 s, "Synthetic oneofs must be after all other oneofs: %s", in check_oneofs()
4199 /* We need to skip past fields to return only oneofs. */ in upb_msg_oneof_next()
4678 o = (upb_oneofdef*)&m->oneofs[m->oneof_count++]; in create_oneofdef()
4957 oneof = (upb_oneofdef*)&m->oneofs[oneof_index]; in create_fielddef()
5054 const google_protobuf_OneofDescriptorProto *const *oneofs; in create_msgdef() local
5088 oneofs = google_protobuf_DescriptorProto_oneof_decl(msg_proto, &n); in create_msgdef()
5090 m->oneofs in create_msgdef()
[all...]
/third_party/protobuf/src/google/protobuf/util/internal/
H A Dproto_writer.cc570 "oneof field '", element_->type().oneofs(field.oneof_index() - 1), in ValidOneof()
H A Dprotostream_objectwriter_test.cc49 #include <google/protobuf/util/internal/testdata/oneofs.pb.h>
84 using proto_util_converter::testing::oneofs::OneOfsRequest;
2961 // "type.googleapis.com/proto_util_converter.testing.oneofs.OneOfsRequest", in TEST_P()
2970 "type.googleapis.com/proto_util_converter.testing.oneofs.OneOfsRequest"); in TEST_P()

Completed in 74 milliseconds