Home
last modified time | relevance | path

Searched refs:oneofCases (Results 1 – 2 of 2) sorted by relevance

/external/protobuf/java/core/src/main/java/com/google/protobuf/
DDynamicMessage.java53 private final FieldDescriptor[] oneofCases; field in DynamicMessage
67 FieldDescriptor[] oneofCases, in DynamicMessage() argument
71 this.oneofCases = oneofCases; in DynamicMessage()
81 FieldDescriptor[] oneofCases = new FieldDescriptor[oneofDeclCount]; in getDefaultInstance() local
83 oneofCases, in getDefaultInstance()
177 FieldDescriptor field = oneofCases[oneof.getIndex()]; in hasOneof()
187 return oneofCases[oneof.getIndex()]; in getOneofFieldDescriptor()
332 private final FieldDescriptor[] oneofCases;
340 this.oneofCases = new FieldDescriptor[type.toProto().getOneofDeclCount()];
369 for (int i = 0; i < oneofCases.length; i++) {
[all …]
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMessage.java74 this.oneofCases = new HashMap<Descriptors.OneofDescriptor, Descriptors.FieldDescriptor>(); in initialize()
102 oneofCases.put(oneof, fieldDescriptor); in initialize()
227 oneofCases.get(rubyOneofDescriptor.getOneofDescriptor()); in methodMissing()
595 if (oneofCases.containsKey(oneofDescriptor)) { in getField()
596 if (oneofCases.get(oneofDescriptor) != fieldDescriptor) in getField()
664 Descriptors.FieldDescriptor oneofCase = oneofCases.get(oneofDescriptor); in setField()
669 oneofCases.remove(oneofDescriptor); in setField()
672 oneofCases.put(oneofDescriptor, fieldDescriptor); in setField()
749 if (oneofCases.containsKey(oneof)) { in getOneofCase()
750 return oneofCases.get(oneof); in getOneofCase()
[all …]