Home
last modified time | relevance | path

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

12

/external/protobuf/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.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)
/external/protobuf/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.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/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";
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_reflection_class.cc253 std::vector<std::string> oneofs; in WriteGeneratedCodeInfo() local
255 oneofs.push_back(UnderscoresToCamelCase(descriptor->oneof_decl(i)->name(), true)); in WriteGeneratedCodeInfo()
257 printer->Print("new[]{ \"$oneofs$\" }, ", "oneofs", JoinStrings(oneofs, "\", \"")); in WriteGeneratedCodeInfo()
/external/protobuf/objectivec/Tests/
DGPBDescriptorTests.m162 // There are two oneofs in there.
163 XCTAssertEqual(descriptor.oneofs.count, 2U);
172 // Check the oneofs to have what is expected.
209 // Check pointers back to the enclosing oneofs.
/external/protobuf/objectivec/google/protobuf/
DStruct.pbobjc.m196 static const char *oneofs[] = {
199 [localDescriptor setupOneofs:oneofs
200 count:(uint32_t)(sizeof(oneofs) / sizeof(char*))
/external/protobuf/csharp/protos/
Dunittest_issues.proto99 // but doesn't include oneofs.
100 // TODO: Consider adding oneofs to TestFieldOrderings, although
/external/protobuf/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()
DGeneratedMessage.java1888 oneofs = new OneofAccessor[descriptor.getOneofs().size()];
1955 int oneofsSize = oneofs.length;
1957 oneofs[i] = new OneofAccessor(
1970 private final OneofAccessor[] oneofs;
1993 return oneofs[oneof.getIndex()];
/external/protobuf/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.cc422 this->oneofs(this->oneofs_size() - 1).data(), in MergePartialFromCodedStream()
423 this->oneofs(this->oneofs_size() - 1).length(), in MergePartialFromCodedStream()
523 this->oneofs(i).data(), this->oneofs(i).length(), in SerializeWithCachedSizes()
527 3, this->oneofs(i), output); in SerializeWithCachedSizes()
575 this->oneofs(i).data(), this->oneofs(i).length(), in SerializeWithCachedSizesToArray()
579 WriteStringToArray(3, this->oneofs(i), target); in SerializeWithCachedSizesToArray()
642 this->oneofs(i)); in ByteSize()
818 const ::std::string& Type::oneofs(int index) const { in oneofs() function in google::protobuf::Type
856 Type::oneofs() const { in oneofs() function in google::protobuf::Type
Dtype.pb.h216 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 { in oneofs() function
980 Type::oneofs() const { in oneofs() function
Dfield_mask.proto167 // Field masks treat fields in oneofs just as regular fields. Consider the
Dunittest_proto3.proto303 // Test oneofs.
/external/protobuf/objectivec/
DGPBDescriptor.h58 @property(nonatomic, readonly, strong, nullable) NSArray<GPBOneofDescriptor*> *oneofs;
DGPBDescriptor.m100 @synthesize oneofs = oneofs_;
178 NSMutableArray *oneofs = [[NSMutableArray alloc] initWithCapacity:count];
186 [oneofs addObject:oneofDescriptor];
190 oneofs_ = oneofs;
/external/tensorflow/tensorflow/core/framework/
Dtensor.proto21 // the "xxx_val" attributes. We are not using oneof because as oneofs cannot
/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_containers.cc1232 namespace oneofs { namespace
1277 return descriptor::NewMappingByName(&oneofs::ContainerDef, descriptor); in NewMessageOneofsByName()
1281 return descriptor::NewSequence(&oneofs::ContainerDef, descriptor); in NewMessageOneofsSeq()
/external/protobuf/src/google/protobuf/util/
Dtype_resolver_util_test.cc110 return type.oneofs(field->oneof_index() - 1) == oneof_name; in FieldInOneof()
/external/protobuf/cmake/
Dtests.cmake64 google/protobuf/util/internal/testdata/oneofs.proto
/external/protobuf/src/
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/src/google/protobuf/util/internal/
Dprotostream_objectwriter_test.cc80 using google::protobuf::testing::oneofs::OneOfsRequest;
2254 using google::protobuf::testing::oneofs::OneOfsRequest; in TEST_P()
Dproto_writer.cc530 element_->type().oneofs(field.oneof_index() - 1), in ValidOneof()

12