Home
last modified time | relevance | path

Searched refs:oneof (Results 1 – 25 of 338) sorted by relevance

12345678910>>...14

/external/nos/host/generic/nugget/proto/nugget/app/protoapi/
Dtesting_api.proto20 // TODO remove this when oneof support is added to nanopb
30 // TODO remove this when oneof support is added to nanopb
46 // a oneof would be good for this but nanopb doesn't support dynamic lengths
47 // inside of a oneof.
90 TODO look into adding callback support to oneof fields in nanopb
92 oneof test_parameters {
98 oneof test_results {
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DDynamicMessage.java175 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 …]
DMessageReflection.java307 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 …]
DMessageOrBuilder.java96 boolean hasOneof(Descriptors.OneofDescriptor oneof); in hasOneof() argument
103 Descriptors.OneofDescriptor oneof); in getOneofFieldDescriptor() argument
/external/protobuf/src/google/protobuf/compiler/java/
Djava_context.cc118 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()
/external/nanopb-c/tests/anonymous_oneof/
DSConscript21 env2.NanopbProto('oneof')
24 'oneof.pb.c',
28 env2.RunTest("message1.txt", [dec, '$BUILD/oneof/message1.pb'], ARGS = ['1'])
29 env2.RunTest("message2.txt", [dec, '$BUILD/oneof/message2.pb'], ARGS = ['2'])
30 env2.RunTest("message3.txt", [dec, '$BUILD/oneof/message3.pb'], ARGS = ['3'])
/external/grpc-grpc/third_party/nanopb/tests/anonymous_oneof/
DSConscript21 env2.NanopbProto('oneof')
24 'oneof.pb.c',
28 env2.RunTest("message1.txt", [dec, '$BUILD/oneof/message1.pb'], ARGS = ['1'])
29 env2.RunTest("message2.txt", [dec, '$BUILD/oneof/message2.pb'], ARGS = ['2'])
30 env2.RunTest("message3.txt", [dec, '$BUILD/oneof/message3.pb'], ARGS = ['3'])
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDynamicMessageTest.java285 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/nanopb-c/tests/oneof/
DSConscript1 # Test the 'oneof' feature for generating C unions.
16 env.NanopbProto('oneof')
19 'oneof.pb.c',
24 'oneof.pb.c',
Doneof.proto14 oneof values
26 oneof values
/external/grpc-grpc/third_party/nanopb/tests/oneof/
DSConscript1 # Test the 'oneof' feature for generating C unions.
16 env.NanopbProto('oneof')
19 'oneof.pb.c',
24 'oneof.pb.c',
Doneof.proto14 oneof values
26 oneof values
/external/tensorflow/tensorflow/contrib/decision_trees/proto/
Dgeneric_tree_model.proto20 oneof model {
53 oneof combination_technique {
86 oneof node_type {
109 oneof left_child_test {
126 oneof leaf {
159 oneof FeatureSum {
176 oneof value {
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DMessageDescriptor.cs76 (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/
DFieldAccessTest.cs187 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/nanopb-c/tests/regression/issue_229/
Dmultiple_oneof.proto4 oneof oneof1 {
7 oneof oneof2 {
/external/skqp/experimental/pvg/
Ddraw_msg.proto175 oneof type {
205 oneof path {
227 oneof path {
249 oneof msg {
/external/grpc-grpc/src/ruby/qps/src/proto/grpc/testing/
Dcontrol_pb.rb15 oneof :load do
27 oneof :value do
58 oneof :argtype do
77 oneof :argtype do
/external/skia/experimental/pvg/
Ddraw_msg.proto175 oneof type {
205 oneof path {
227 oneof path {
249 oneof msg {
/external/protobuf/objectivec/
DGPBUtilities.m122 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/ruby/
Druby_generator.cc167 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/src/google/protobuf/compiler/js/
Djs_generator.cc440 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/tensorflow/tensorflow/core/protobuf/
Dautotuning.proto37 oneof result {
42 oneof key {
60 oneof checker_failure {
/external/syzkaller/vendor/github.com/golang/protobuf/proto/
Dproperties.go143 oneof bool // whether this is a oneof field member
180 if p.oneof {
248 p.oneof = true
375 oneof := f.Tag.Get("protobuf_oneof") // special case
376 if oneof != "" {
378 p.OrigName = oneof
/external/golang-protobuf/proto/
Dproperties.go143 oneof bool // whether this is a oneof field member
180 if p.oneof {
248 p.oneof = true
375 oneof := f.Tag.Get("protobuf_oneof") // special case
376 if oneof != "" {
378 p.OrigName = oneof

12345678910>>...14