HomeSort by relevance Sort by last modified time
    Searched refs:oneofs (Results 1 - 25 of 31) sorted by null

1 2

  /external/protobuf/python/google/protobuf/internal/
generator_test.py 292 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)
descriptor_pool_test.py 186 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)
python_message.py     [all...]
  /external/protobuf/src/google/protobuf/compiler/csharp/
csharp_reflection_class.cc 222 // corresponding to fields, names corresponding to oneofs, nested enums, and nested types. Each array part
251 // Oneofs
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/
descriptor_pool.py 442 oneofs = [
457 oneofs=oneofs,
475 oneofs[oneof_index].fields.append(fields[field_index])
476 fields[field_index].containing_oneof = oneofs[oneof_index]
descriptor.py 247 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:
    [all...]
  /external/protobuf/objectivec/
GPBDescriptor.h 58 @property(nonatomic, readonly, strong, nullable) NSArray<GPBOneofDescriptor*> *oneofs; variable
  /external/protobuf/java/core/src/main/java/com/google/protobuf/
Descriptors.java 641 /** 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;
    [all...]
GeneratedMessage.java     [all...]
  /external/protobuf/csharp/src/Google.Protobuf/Reflection/
GeneratedClrTypeInfo.cs 64 /// for oneofs in the message for message descriptors. It is expected that for a oneof name of "Foo",
MessageDescriptor.cs 72 // to see any nested oneofs, types or enums in "not actually generated" code... we do
74 Oneofs = DescriptorUtil.ConvertAndMakeReadOnly(
194 public IList<OneofDescriptor> Oneofs { get; }
212 /// message types, oneofs and enums.
234 foreach (OneofDescriptor oneof in Oneofs)
  /external/protobuf/src/google/protobuf/
type.pb.cc 204 "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(i), output)
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...]
type.pb.h 212 // repeated string oneofs = 3;
216 const ::std::string& oneofs(int index) const;
225 const ::google::protobuf::RepeatedPtrField< ::std::string>& oneofs() const;
942 inline const ::std::string& Type::oneofs(int index) const { function in class:google::protobuf::Type
980 Type::oneofs() const { function in class:google::protobuf::Type
    [all...]
  /external/protobuf/python/google/protobuf/pyext/
descriptor_containers.cc 1232 namespace oneofs { namespace in namespace:google::protobuf::python::message_descriptor
    [all...]
  /external/protobuf/src/google/protobuf/util/
type_resolver_util_test.cc 110 return type.oneofs(field->oneof_index() - 1) == oneof_name;
  /prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/
type.pb.h 212 // repeated string oneofs = 3;
216 const ::std::string& oneofs(int index) const;
225 const ::google::protobuf::RepeatedPtrField< ::std::string>& oneofs() const;
942 inline const ::std::string& Type::oneofs(int index) const { function in class:google::protobuf::Type
980 Type::oneofs() const { function in class:google::protobuf::Type
    [all...]
  /external/protobuf/src/google/protobuf/util/internal/
protostream_objectwriter_test.cc 53 #include <google/protobuf/util/internal/testdata/oneofs.pb.h>
80 using google::protobuf::testing::oneofs::OneOfsRequest;
    [all...]
proto_writer.cc 530 element_->type().oneofs(field.oneof_index() - 1),
  /external/protobuf/csharp/src/Google.Protobuf/WellKnownTypes/
FieldMask.cs 165 /// Field masks treat fields in oneofs just as regular fields. Consider the
Type.cs 64 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Type), global::Google.Protobuf.WellKnownTypes.Type.Parser, new[]{ "Name", "Fields", "Oneofs", "Options", "SourceContext", "Syntax" }, null, null, null),
152 /// <summary>Field number for the "oneofs" field.</summary>
160 public pbc::RepeatedField<string> Oneofs {
442 /// The index of the field type in `Type.oneofs`, for message or enumeration
    [all...]
  /external/protobuf/js/
proto3_test.js 219 * Test that oneofs continue to have a notion of field presence.
  /external/protobuf/src/
Makefile.am 519 google/protobuf/util/internal/testdata/oneofs.proto \
    [all...]
  /external/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/
UnittestIssues.cs     [all...]
  /external/protobuf/php/ext/google/protobuf/
upb.h 2053 OneofAccessor oneofs() { return OneofAccessor(this); } function in class:upb::MessageDef
2054 ConstOneofAccessor oneofs() const { return ConstOneofAccessor(this); } function in class:upb::MessageDef
    [all...]
  /external/protobuf/ruby/ext/google/protobuf_c/
upb.h 2531 OneofAccessor oneofs() { return OneofAccessor(this); } function in class:upb::MessageDef
2532 ConstOneofAccessor oneofs() const { return ConstOneofAccessor(this); } function in class:upb::MessageDef
    [all...]

Completed in 1093 milliseconds

1 2