Home
last modified time | relevance | path

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

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
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)
Ddescriptor_pool_test.py187 self.assertEqual(1, len(msg2.oneofs))
189 self.assertEqual(2, len(msg2.oneofs[0].fields))
191 self.assertEqual(msg2.oneofs[0],
193 self.assertIn(msg2.fields_by_name[name], msg2.oneofs[0].fields)
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/testdata/
Doneofs.proto31 // Proto to test oneofs.
38 package google.protobuf.testing.oneofs;
39 option java_package = "com.google.protobuf.testing.oneofs";
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/csharp/
Dcsharp_reflection_class.cc250 std::vector<std::string> oneofs; in WriteGeneratedCodeInfo() local
252 oneofs.push_back(UnderscoresToCamelCase(descriptor->oneof_decl(i)->name(), true)); in WriteGeneratedCodeInfo()
254 printer->Print("new[]{ \"$oneofs$\" }, ", "oneofs", JoinStrings(oneofs, "\", \"")); in WriteGeneratedCodeInfo()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Ddescriptor.py260 is_extendable=True, extension_ranges=None, oneofs=None, argument
271 is_extendable=True, extension_ranges=None, oneofs=None, argument
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:
Ddescriptor_pool.py447 oneofs = [
462 oneofs=oneofs,
480 oneofs[oneof_index].fields.append(fields[field_index])
481 fields[field_index].containing_oneof = oneofs[oneof_index]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/google/protobuf/
DStruct.pbobjc.m212 static const char *oneofs[] = {
215 [localDescriptor setupOneofs:oneofs
216 count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
240 GPBOneofDescriptor *oneof = [descriptor.oneofs objectAtIndex:0];
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBDescriptorTests.m170 // There are two oneofs in there.
171 XCTAssertEqual(descriptor.oneofs.count, 2U);
180 // Check the oneofs to have what is expected.
217 // Check pointers back to the enclosing oneofs.
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/protos/
Dunittest_issues.proto99 // but doesn't include oneofs.
100 // TODO: Consider adding oneofs to TestFieldOrderings, although
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DDescriptors.java643 return Collections.unmodifiableList(Arrays.asList(oneofs)); in getOneofs()
768 private final OneofDescriptor[] oneofs; field in Descriptors.Descriptor
790 this.oneofs = new OneofDescriptor[0]; in Descriptor()
807 oneofs = new OneofDescriptor[proto.getOneofDeclCount()]; in Descriptor()
809 oneofs[i] = new OneofDescriptor( in Descriptor()
838 oneofs[i].fields = new FieldDescriptor[oneofs[i].getFieldCount()]; in Descriptor()
839 oneofs[i].fieldCount = 0; in Descriptor()
874 for (int i = 0; i < oneofs.length; i++) { in setProto()
875 oneofs[i].setProto(proto.getOneofDecl(i)); in setProto()
DGeneratedMessageV3.java1721 oneofs = new OneofAccessor[descriptor.getOneofs().size()];
1788 int oneofsSize = oneofs.length;
1790 oneofs[i] = new OneofAccessor(
1803 private final OneofAccessor[] oneofs;
1826 return oneofs[oneof.getIndex()];
DGeneratedMessage.java2052 oneofs = new OneofAccessor[descriptor.getOneofs().size()];
2119 int oneofsSize = oneofs.length;
2121 oneofs[i] = new OneofAccessor(
2134 private final OneofAccessor[] oneofs;
2157 return oneofs[oneof.getIndex()];
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Dtype.proto52 repeated string oneofs = 3; field
128 // The index of the field type in `Type.oneofs`, for message or enumeration
Dtype.pb.cc415 this->oneofs(this->oneofs_size() - 1).data(), in MergePartialFromCodedStream()
416 this->oneofs(this->oneofs_size() - 1).length(), in MergePartialFromCodedStream()
516 this->oneofs(i).data(), this->oneofs(i).length(), in SerializeWithCachedSizes()
520 3, this->oneofs(i), output); in SerializeWithCachedSizes()
568 this->oneofs(i).data(), this->oneofs(i).length(), in InternalSerializeWithCachedSizesToArray()
572 WriteStringToArray(3, this->oneofs(i), target); in InternalSerializeWithCachedSizesToArray()
635 this->oneofs(i)); in ByteSize()
815 const ::std::string& Type::oneofs(int index) const { in oneofs() function in google::protobuf::Type
853 Type::oneofs() const { in oneofs() function in google::protobuf::Type
Dtype.pb.h220 const ::std::string& oneofs(int index) const;
229 const ::google::protobuf::RepeatedPtrField< ::std::string>& oneofs() const;
962 inline const ::std::string& Type::oneofs(int index) const { in oneofs() function
1000 Type::oneofs() const { in oneofs() function
Dfield_mask.proto219 // Field masks treat fields in oneofs just as regular fields. Consider the
Dunittest_proto3.proto303 // Test oneofs.
/frameworks/opt/gamesdk/src/tuningfork/tools/validation/
DREADME.md75 * No oneofs
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBDescriptor.h58 @property(nonatomic, readonly, strong, nullable) NSArray<GPBOneofDescriptor*> *oneofs;
DGPBDescriptor.m106 @synthesize oneofs = oneofs_;
184 NSMutableArray *oneofs = [[NSMutableArray alloc] initWithCapacity:count];
192 [oneofs addObject:oneofDescriptor];
196 oneofs_ = oneofs;
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Ddescriptor_containers.cc1256 namespace oneofs { namespace
1301 return descriptor::NewMappingByName(&oneofs::ContainerDef, descriptor); in NewMessageOneofsByName()
1305 return descriptor::NewSequence(&oneofs::ContainerDef, descriptor); in NewMessageOneofsSeq()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/
Dtype_resolver_util_test.cc110 return type.oneofs(field->oneof_index() - 1) == oneof_name; in FieldInOneof()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/cmake/
Dtests.cmake65 google/protobuf/util/internal/testdata/oneofs.proto
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/
DMakefile.am522 google/protobuf/util/internal/testdata/oneofs.proto \
637 google/protobuf/util/internal/testdata/oneofs.pb.cc \
638 google/protobuf/util/internal/testdata/oneofs.pb.h \
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/
Dproto_writer.cc546 element_->type().oneofs(field.oneof_index() - 1), in ValidOneof()

12