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

/external/protobuf/python/google/protobuf/internal/
H A Dgenerator_test.py292 self.assertEqual(1, len(desc.oneofs))
293 self.assertEqual('oneof_field', desc.oneofs[0].name)
294 self.assertEqual(0, desc.oneofs[0].index)
295 self.assertIs(desc, desc.oneofs[0].containing_type)
296 self.assertIs(desc.oneofs[0], desc.oneofs_by_name['oneof_field'])
301 set([field.name for field in desc.oneofs[0].fields]))
304 self.assertIs(desc.oneofs[0], field_desc.containing_oneof)
H A Ddescriptor_pool_test.py186 self.assertEqual(1, len(msg2.oneofs))
188 self.assertEqual(2, len(msg2.oneofs[0].fields))
190 self.assertEqual(msg2.oneofs[0],
192 self.assertIn(msg2.fields_by_name[name], msg2.oneofs[0].fields)
H A Dpython_message.py827 # Fields inside oneofs are never repeated (enforced by the compiler).
828 for oneof in message_descriptor.oneofs:
/external/protobuf/src/google/protobuf/compiler/csharp/
H A Dcsharp_reflection_class.cc222 // corresponding to fields, names corresponding to oneofs, nested enums, and nested types. Each array part
253 std::vector<std::string> oneofs; local
255 oneofs.push_back(UnderscoresToCamelCase(descriptor->oneof_decl(i)->name(), true));
257 printer->Print("new[]{ \"$oneofs$\" }, ", "oneofs", JoinStrings(oneofs, "\", \""));
/external/protobuf/python/google/protobuf/
H A Ddescriptor.py247 oneofs: (list of OneofDescriptor) The list of descriptors for oneof fields
249 oneofs_by_name: (dict str -> OneofDescriptor) Same objects as in |oneofs|,
260 is_extendable=True, extension_ranges=None, oneofs=None,
271 is_extendable=True, extension_ranges=None, oneofs=None,
315 self.oneofs = oneofs if oneofs is not None else []
316 self.oneofs_by_name = dict((o.name, o) for o in self.oneofs)
317 for oneof in self.oneofs:
H A Ddescriptor_pool.py442 oneofs = [
457 oneofs=oneofs,
475 oneofs[oneof_index].fields.append(fields[field_index])
476 fields[field_index].containing_oneof = oneofs[oneof_index]
/external/protobuf/objectivec/
H A DGPBDescriptor.h58 @property(nonatomic, readonly, strong, nullable) NSArray<GPBOneofDescriptor*> *oneofs; variable
/external/protobuf/java/core/src/main/java/com/google/protobuf/
H A DDescriptors.java641 /** Get a list of this message type's oneofs. */
643 return Collections.unmodifiableList(Arrays.asList(oneofs));
768 private final OneofDescriptor[] oneofs; field in class:Descriptors.Descriptor
790 this.oneofs = new OneofDescriptor[0];
807 oneofs = new OneofDescriptor[proto.getOneofDeclCount()];
809 oneofs[i] = new OneofDescriptor(
838 oneofs[i].fields = new FieldDescriptor[oneofs[i].getFieldCount()];
839 oneofs[i].fieldCount = 0;
H A DGeneratedMessage.java1888 oneofs = new OneofAccessor[descriptor.getOneofs().size()];
1955 int oneofsSize = oneofs.length;
1957 oneofs[i] = new OneofAccessor(
1970 private final OneofAccessor[] oneofs; field in class:GeneratedMessage.FieldAccessorTable
1993 return oneofs[oneof.getIndex()];
/external/protobuf/src/google/protobuf/
H A Dtype.pb.cc204 "rotobuf.Field\022\016\n\006oneofs\030\003 \003(\t\022(\n\007options"
415 // repeated string oneofs = 3;
422 this->oneofs(this->oneofs_size() - 1).data(),
423 this->oneofs(this->oneofs_size() - 1).length(),
425 "google.protobuf.Type.oneofs"));
520 // repeated string oneofs = 3;
523 this->oneofs(i).data(), this->oneofs(i).length(),
525 "google.protobuf.Type.oneofs");
527 3, this->oneofs(
818 const ::std::string& Type::oneofs(int index) const { function in class:google::protobuf::Type
856 Type::oneofs() const { function in class:google::protobuf::Type
[all...]
H A Dtype.pb.h212 // repeated string oneofs = 3;
216 const ::std::string& oneofs(int index) const;
225 const ::google::protobuf::RepeatedPtrField< ::std::string>& oneofs() const;
935 // repeated string oneofs = 3;
942 inline const ::std::string& Type::oneofs(int index) const { function in class:google::protobuf::Type
943 // @@protoc_insertion_point(field_get:google.protobuf.Type.oneofs)
947 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.oneofs)
951 // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
956 // @@protoc_insertion_point(field_set_char:google.protobuf.Type.oneofs)
961 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.oneofs)
980 Type::oneofs() const { function in class:google::protobuf::Type
[all...]
/external/protobuf/python/google/protobuf/pyext/
H A Ddescriptor_containers.cc1232 namespace oneofs { namespace in namespace:google::protobuf::python::message_descriptor
1274 } // namespace oneofs
1277 return descriptor::NewMappingByName(&oneofs::ContainerDef, descriptor);
1281 return descriptor::NewSequence(&oneofs::ContainerDef, descriptor);
/external/protobuf/src/google/protobuf/util/
H A Dtype_resolver_util_test.cc110 return type.oneofs(field->oneof_index() - 1) == oneof_name;
/external/protobuf/src/google/protobuf/util/internal/
H A Dprotostream_objectwriter_test.cc53 #include <google/protobuf/util/internal/testdata/oneofs.pb.h>
80 using google::protobuf::testing::oneofs::OneOfsRequest;
2254 using google::protobuf::testing::oneofs::OneOfsRequest;
2258 // "type.googleapis.com/google.protobuf.testing.oneofs.OneOfsRequest",
2267 "type.googleapis.com/google.protobuf.testing.oneofs.OneOfsRequest");
H A Dproto_writer.cc530 element_->type().oneofs(field.oneof_index() - 1),
/external/protobuf/src/
H A DMakefile.am519 google/protobuf/util/internal/testdata/oneofs.proto \
632 google/protobuf/util/internal/testdata/oneofs.pb.cc \
633 google/protobuf/util/internal/testdata/oneofs.pb.h \
/external/protobuf/php/ext/google/protobuf/
H A Dupb.h1856 /* The number of oneofs that belong to the MessageDef. */
1880 * msgdef, and that the oneof's name is unique among all oneofs in the msgdef.
1974 /* Iteration over oneofs. The order is undefined. */
2053 OneofAccessor oneofs() { return OneofAccessor(this); } function in class:upb::MessageDef
2054 ConstOneofAccessor oneofs() const { return ConstOneofAccessor(this); } function in class:upb::MessageDef
2149 /* Similar to above, we also support iterating through the oneofs in a
3102 /* Tables for looking up oneofs by name. */
3113 /* TODO: also support static initialization of the oneofs table. This will be
3114 * needed if we compile in descriptors that contain oneofs. */
/external/protobuf/ruby/ext/google/protobuf_c/
H A Dupb.h1683 * defs (like oneofs and files). It only includes fields because they can be
2324 /* The number of oneofs that belong to the MessageDef. */
2348 * msgdef, and that the oneof's name is unique among all oneofs in the msgdef.
2452 /* Iteration over oneofs. The order is undefined. */
2531 OneofAccessor oneofs() { return OneofAccessor(this); } function in class:upb::MessageDef
2532 ConstOneofAccessor oneofs() const { return ConstOneofAccessor(this); } function in class:upb::MessageDef
2617 /* Iteration over fields and oneofs. For example:
2636 /* Similar to above, we also support iterating through the oneofs in a
3795 /* TODO: also support static initialization of the oneofs table. This will be
3796 * needed if we compile in descriptors that contain oneofs
[all...]

Completed in 335 milliseconds