/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | DynamicMessage.java | 175 public boolean hasOneof(OneofDescriptor oneof) { in hasOneof() argument 176 verifyOneofContainingType(oneof); in hasOneof() 177 FieldDescriptor field = oneofCases[oneof.getIndex()]; in hasOneof() 185 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) { in getOneofFieldDescriptor() argument 186 verifyOneofContainingType(oneof); in getOneofFieldDescriptor() 187 return oneofCases[oneof.getIndex()]; in getOneofFieldDescriptor() 317 private void verifyOneofContainingType(OneofDescriptor oneof) { 318 if (oneof.getContainingType() != type) { 462 public boolean hasOneof(OneofDescriptor oneof) { 463 verifyOneofContainingType(oneof); [all …]
|
D | MessageReflection.java | 307 boolean hasOneof(Descriptors.OneofDescriptor oneof); in hasOneof() argument 313 MergeTarget clearOneof(Descriptors.OneofDescriptor oneof); in clearOneof() argument 319 Descriptors.FieldDescriptor getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof); in getOneofFieldDescriptor() argument 419 public boolean hasOneof(Descriptors.OneofDescriptor oneof) { in hasOneof() argument 420 return builder.hasOneof(oneof); in hasOneof() 424 public MergeTarget clearOneof(Descriptors.OneofDescriptor oneof) { in clearOneof() argument 425 builder.clearOneof(oneof); in clearOneof() 430 public Descriptors.FieldDescriptor getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof) { in getOneofFieldDescriptor() argument 431 return builder.getOneofFieldDescriptor(oneof); in getOneofFieldDescriptor() 606 public boolean hasOneof(Descriptors.OneofDescriptor oneof) { in hasOneof() argument [all …]
|
D | MessageOrBuilder.java | 96 boolean hasOneof(Descriptors.OneofDescriptor oneof); in hasOneof() argument 103 Descriptors.OneofDescriptor oneof); in getOneofFieldDescriptor() argument
|
D | AbstractMessage.java | 76 public boolean hasOneof(OneofDescriptor oneof) { in hasOneof() argument 82 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) { in getOneofFieldDescriptor() argument 308 public boolean hasOneof(OneofDescriptor oneof) { in hasOneof() argument 314 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) { in getOneofFieldDescriptor() argument 321 public BuilderType clearOneof(OneofDescriptor oneof) { in clearOneof() argument
|
D | GeneratedMessage.java | 217 public boolean hasOneof(final OneofDescriptor oneof) { in hasOneof() argument 218 return internalGetFieldAccessorTable().getOneof(oneof).has(this); in hasOneof() 222 public FieldDescriptor getOneofFieldDescriptor(final OneofDescriptor oneof) { in getOneofFieldDescriptor() argument 223 return internalGetFieldAccessorTable().getOneof(oneof).get(this); in getOneofFieldDescriptor() 532 public boolean hasOneof(final OneofDescriptor oneof) { in hasOneof() argument 533 return internalGetFieldAccessorTable().getOneof(oneof).has(this); in hasOneof() 537 public FieldDescriptor getOneofFieldDescriptor(final OneofDescriptor oneof) { in getOneofFieldDescriptor() argument 538 return internalGetFieldAccessorTable().getOneof(oneof).get(this); in getOneofFieldDescriptor() 571 public BuilderType clearOneof(final OneofDescriptor oneof) { in clearOneof() argument 572 internalGetFieldAccessorTable().getOneof(oneof).clear(this); in clearOneof() [all …]
|
/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_context.cc | 118 const OneofDescriptor* oneof = message->oneof_decl(i); in InitializeFieldGeneratorInfoForMessage() local 120 info.name = UnderscoresToCamelCase(oneof->name(), false); in InitializeFieldGeneratorInfoForMessage() 121 info.capitalized_name = UnderscoresToCamelCase(oneof->name(), true); in InitializeFieldGeneratorInfoForMessage() 122 oneof_generator_info_map_[oneof] = info; in InitializeFieldGeneratorInfoForMessage() 182 const OneofDescriptor* oneof) const { in GetOneofGeneratorInfo() 184 FindOrNull(oneof_generator_info_map_, oneof); in GetOneofGeneratorInfo() 187 << oneof->name(); in GetOneofGeneratorInfo()
|
D | java_context.h | 80 const OneofDescriptor* oneof) const;
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | DynamicMessageTest.java | 285 OneofDescriptor oneof = TestAllTypes.getDescriptor().getOneofs().get(0); in testDynamicOneofMessage() local 286 assertFalse(builder.hasOneof(oneof)); in testDynamicOneofMessage() 287 assertSame(null, builder.getOneofFieldDescriptor(oneof)); in testDynamicOneofMessage() 290 assertTrue(builder.hasOneof(oneof)); in testDynamicOneofMessage() 291 FieldDescriptor field = oneof.getField(3); in testDynamicOneofMessage() 292 assertSame(field, builder.getOneofFieldDescriptor(oneof)); in testDynamicOneofMessage() 295 assertTrue(message.hasOneof(oneof)); in testDynamicOneofMessage() 299 FieldDescriptor mergedField = oneof.getField(0); in testDynamicOneofMessage() 306 builder.clearOneof(oneof); in testDynamicOneofMessage() 307 assertSame(null, builder.getOneofFieldDescriptor(oneof)); in testDynamicOneofMessage() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf/Reflection/ |
D | MessageDescriptor.cs | 76 (oneof, index) => in MessageDescriptor() 77 new OneofDescriptor(oneof, file, this, index, generatedCodeInfo.OneofNames[index])); in MessageDescriptor() 234 foreach (OneofDescriptor oneof in Oneofs) in CrossLink() 236 oneof.CrossLink(); in CrossLink()
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/ |
D | FieldAccessTest.cs | 187 var oneof = descriptor.Oneofs[0]; in Oneof() 188 Assert.AreEqual("oneof_field", oneof.Name); in Oneof() 189 Assert.IsNull(oneof.Accessor.GetCaseFieldDescriptor(message)); in Oneof() 192 …Assert.AreSame(descriptor.Fields[TestAllTypes.OneofStringFieldNumber], oneof.Accessor.GetCaseField… in Oneof() 195 …Assert.AreSame(descriptor.Fields[TestAllTypes.OneofUint32FieldNumber], oneof.Accessor.GetCaseField… in Oneof() 197 oneof.Accessor.Clear(message); in Oneof()
|
/external/protobuf/src/google/protobuf/compiler/ruby/ |
D | ruby_generator.cc | 167 void GenerateOneof(const google::protobuf::OneofDescriptor* oneof, in GenerateOneof() argument 171 "name", oneof->name()); in GenerateOneof() 174 for (int i = 0; i < oneof->field_count(); i++) { in GenerateOneof() 175 const FieldDescriptor* field = oneof->field(i); in GenerateOneof() 205 const OneofDescriptor* oneof = message->oneof_decl(i); in GenerateMessage() local 206 GenerateOneof(oneof, printer); in GenerateMessage()
|
/external/protobuf/objectivec/ |
D | GPBUtilities.m | 122 NSCAssert(idx < 0, @"%@: invalid index (%d) for oneof.", 147 void GPBMaybeClearOneof(GPBMessage *self, GPBOneofDescriptor *oneof, 151 // Do nothing/nothing set in the oneof. 157 GPBFieldDescriptor *fieldSet = [oneof fieldWithNumber:fieldNumberSet]; 159 @"%@: oneof set to something (%u) not in the oneof?", 168 // Set to nothing stored in the oneof. 200 //% GPBOneofDescriptor *oneof = field->containingOneof_; 201 //% if (oneof) { 203 //% GPBMaybeClearOneof(self, oneof, fieldDesc->hasIndex, fieldDesc->number); 320 // Non repeated/map can be in an oneof, clear any existing value from the [all …]
|
/external/protobuf/src/google/protobuf/compiler/js/ |
D | js_generator.cc | 440 bool IgnoreOneof(const OneofDescriptor* oneof) { in IgnoreOneof() argument 441 for (int i = 0; i < oneof->field_count(); i++) { in IgnoreOneof() 442 if (!IgnoreField(oneof->field(i))) { in IgnoreOneof() 522 string JSOneofName(const OneofDescriptor* oneof) { in JSOneofName() argument 523 return ToUpperCamel(ParseLowerUnderscore(oneof->name())); in JSOneofName() 548 string JSOneofIndex(const OneofDescriptor* oneof) { in JSOneofIndex() argument 550 for (int i = 0; i < oneof->containing_type()->oneof_decl_count(); i++) { in JSOneofIndex() 551 const OneofDescriptor* o = oneof->containing_type()->oneof_decl(i); in JSOneofIndex() 560 if (o == oneof) { in JSOneofIndex() 1026 const OneofDescriptor* oneof = desc->oneof_decl(i); in OneofGroupList() local [all …]
|
/external/protobuf/php/ext/google/protobuf/ |
D | storage.c | 343 const upb_oneofdef* oneof = upb_msg_iter_oneof(&oit); in create_layout() local 352 for (upb_oneof_begin(&fit, oneof); !upb_oneof_done(&fit); in create_layout() 363 const upb_oneofdef* oneof = upb_msg_iter_oneof(&oit); in create_layout() local 370 for (upb_oneof_begin(&fit, oneof); !upb_oneof_done(&fit); in create_layout()
|
/external/protobuf/csharp/protos/ |
D | unittest_issues.proto | 95 // order, and the oneof fields aren't contiguous either. 107 oneof o1 { 114 oneof o2 {
|
/external/protobuf/js/ |
D | test.proto | 207 oneof partial_oneof { 212 oneof recursive_oneof { 220 oneof default_oneof_a { 225 oneof default_oneof_b {
|
D | message.js | 765 jspb.Message.setOneofField = function(msg, fieldNumber, oneof, value) { argument 766 var currentCase = jspb.Message.computeOneofCase(msg, oneof); 794 jspb.Message.computeOneofCase = function(msg, oneof) { argument 798 goog.array.forEach(oneof, function(fieldNumber) { 896 jspb.Message.setOneofWrapperField = function(msg, fieldNumber, oneof, value) { argument 902 jspb.Message.setOneofField(msg, fieldNumber, oneof, data);
|
/external/protobuf/src/google/protobuf/util/ |
D | json_format_proto3.proto | 79 // In JSON format oneof fields behave mostly the same as optional 83 // 2. Multiple oneof fields in the same oneof cannot appear at the 85 oneof oneof_value {
|
/external/protobuf/src/google/protobuf/compiler/javanano/ |
D | javanano_helpers.h | 57 string UnderscoresToCamelCase(const OneofDescriptor* oneof); 59 string UnderscoresToCapitalizedCamelCase(const OneofDescriptor* oneof);
|
D | javanano_helpers.cc | 157 string UnderscoresToCamelCase(const OneofDescriptor* oneof) { in UnderscoresToCamelCase() argument 158 return UnderscoresToCamelCaseImpl(oneof->name(), false); in UnderscoresToCamelCase() 161 string UnderscoresToCapitalizedCamelCase(const OneofDescriptor* oneof) { in UnderscoresToCapitalizedCamelCase() argument 162 return UnderscoresToCamelCaseImpl(oneof->name(), true); in UnderscoresToCapitalizedCamelCase()
|
/external/protobuf/src/google/protobuf/ |
D | unittest_preserve_unknown_enum.proto | 56 oneof o { 67 oneof o {
|
D | arena_unittest.cc | 907 const OneofDescriptor* oneof = desc->FindOneofByName( in TEST() local 911 EXPECT_TRUE(refl->HasOneof(*message, oneof)); in TEST() 912 refl->ClearOneof(message, oneof); in TEST() 913 EXPECT_FALSE(refl->HasOneof(*message, oneof)); in TEST() 916 EXPECT_TRUE(refl->HasOneof(*message, oneof)); in TEST() 917 refl->ClearOneof(message, oneof); in TEST() 918 EXPECT_FALSE(refl->HasOneof(*message, oneof)); in TEST() 920 EXPECT_TRUE(refl->HasOneof(*message, oneof)); in TEST() 922 EXPECT_FALSE(refl->HasOneof(*message, oneof)); in TEST()
|
/external/protobuf/java/core/src/test/proto/com/google/protobuf/ |
D | lite_equals_and_hash.proto | 40 oneof oneof_field { 78 oneof Foo {
|
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | RubyMessage.java | 100 Descriptors.OneofDescriptor oneof = fieldDescriptor.getContainingOneof(); in initialize() 101 if (oneof != null) { in initialize() 102 oneofCases.put(oneof, fieldDescriptor); in initialize() 748 private Descriptors.FieldDescriptor getOneofCase(Descriptors.OneofDescriptor oneof) { in getOneofCase() argument 749 if (oneofCases.containsKey(oneof)) { in getOneofCase() 750 return oneofCases.get(oneof); in getOneofCase() 752 return builder.getOneofFieldDescriptor(oneof); in getOneofCase()
|
/external/protobuf/objectivec/Tests/ |
D | GPBDescriptorTests.m | 192 // Unknown oneof not found. 197 // Unknown oneof item. 202 // Field exists, but not in this oneof.
|