Home
last modified time | relevance | path

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

123456

/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
DAbstractMessage.java76 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
/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/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/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/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/protobuf/php/ext/google/protobuf/
Dstorage.c343 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/
Dunittest_issues.proto95 // order, and the oneof fields aren't contiguous either.
107 oneof o1 {
114 oneof o2 {
/external/tensorflow/tensorflow/core/framework/
Dtensor_slice.proto23 // "oneof" to preserve information about whether the length is
26 oneof has_length {
/external/tensorflow/tensorflow/contrib/tensor_forest/proto/
Dfertile_stats.proto32 // This is here, outside of the leaf_stat oneof, because almost all
39 oneof counts {
54 oneof leaf_stat {
/external/protobuf/src/google/protobuf/util/
Djson_format_proto3.proto79 // 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/js/
Dtest.proto207 oneof partial_oneof {
212 oneof recursive_oneof {
220 oneof default_oneof_a {
225 oneof default_oneof_b {
/external/golang-protobuf/protoc-gen-go/testdata/my_test/
Dtest.pb.go.golden464 // This is a oneof, called "union".
490 Number int32 `protobuf:"varint,5,opt,name=number,oneof"`
493 Name string `protobuf:"bytes,6,opt,name=name,oneof"`
496 Data []byte `protobuf:"bytes,7,opt,name=data,oneof"`
499 TempC float64 `protobuf:"fixed64,8,opt,name=temp_c,json=tempC,oneof"`
502 Height float32 `protobuf:"fixed32,9,opt,name=height,oneof"`
505 Today Days `protobuf:"varint,10,opt,name=today,enum=my.test.Days,oneof"`
508 Maybe bool `protobuf:"varint,11,opt,name=maybe,oneof"`
511 Delta int32 `protobuf:"zigzag32,12,opt,name=delta,oneof"`
514 Msg *Reply `protobuf:"bytes,13,opt,name=msg,oneof"`
[all …]
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_helpers.h57 string UnderscoresToCamelCase(const OneofDescriptor* oneof);
59 string UnderscoresToCapitalizedCamelCase(const OneofDescriptor* oneof);
Djavanano_helpers.cc157 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/tensorflow/tensorflow/contrib/boosted_trees/proto/
Dlearner.proto33 oneof tuner {
62 oneof config {
116 oneof feature_fraction {
/external/perfetto/protos/perfetto/trace/
Dtrace_packet.proto37 oneof data {
56 oneof optional_trusted_uid { int32 trusted_uid = 3; };
/external/golang-protobuf/proto/
Dproperties.go186 oneof bool // whether this is a oneof field member
240 if p.oneof {
322 p.oneof = true
704 oneof := f.Tag.Get("protobuf_oneof") // special case
705 if oneof != "" {
707 p.OrigName = oneof
718 if p.enc == nil && !strings.HasPrefix(f.Name, "XXX_") && oneof == "" {

123456