/external/protobuf/java/src/main/java/com/google/protobuf/ |
MessageOrBuilder.java | 92 * Returns true if the given oneof is set. 94 * {@code oneof.getContainingType() != getDescriptorForType()}. 96 boolean hasOneof(Descriptors.OneofDescriptor oneof); 99 * Obtains the FieldDescriptor if the given oneof is set. Returns null 103 Descriptors.OneofDescriptor oneof);
|
DynamicMessage.java | 59 * oneofCases stores the FieldDescriptor for each oneof to indicate 171 public boolean hasOneof(OneofDescriptor oneof) { 172 verifyOneofContainingType(oneof); 173 FieldDescriptor field = oneofCases[oneof.getIndex()]; 180 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) { 181 verifyOneofContainingType(oneof); 182 return oneofCases[oneof.getIndex()]; 303 /** Verifies that the oneof is an oneof of this message. */ 304 private void verifyOneofContainingType(OneofDescriptor oneof) { [all...] |
AbstractMessage.java | 66 public boolean hasOneof(OneofDescriptor oneof) { 72 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) { 239 public boolean hasOneof(OneofDescriptor oneof) { 245 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) { 252 public BuilderType clearOneof(OneofDescriptor oneof) {
|
MessageReflection.java | 299 * Returns true if the given oneof is set. 302 * {@code oneof.getContainingType() != getDescriptorForType()}. 304 boolean hasOneof(Descriptors.OneofDescriptor oneof); 307 * Clears the oneof. This is exactly equivalent to calling the generated 308 * "clear" accessor method corresponding to the oneof. 310 MergeTarget clearOneof(Descriptors.OneofDescriptor oneof); 313 * Obtains the FieldDescriptor if the given oneof is set. Returns null 316 Descriptors.FieldDescriptor getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof); 413 public boolean hasOneof(Descriptors.OneofDescriptor oneof) { 414 return builder.hasOneof(oneof); [all...] |
Message.java | 184 * Clears the oneof. This is exactly equivalent to calling the generated 185 * "clear" accessor method corresponding to the oneof. 187 Builder clearOneof(Descriptors.OneofDescriptor oneof);
|
GeneratedMessage.java | 159 public boolean hasOneof(final OneofDescriptor oneof) { 160 return internalGetFieldAccessorTable().getOneof(oneof).has(this); 164 public FieldDescriptor getOneofFieldDescriptor(final OneofDescriptor oneof) { 165 return internalGetFieldAccessorTable().getOneof(oneof).get(this); 361 public boolean hasOneof(final OneofDescriptor oneof) { 362 return internalGetFieldAccessorTable().getOneof(oneof).has(this); 366 public FieldDescriptor getOneofFieldDescriptor(final OneofDescriptor oneof) { 367 return internalGetFieldAccessorTable().getOneof(oneof).get(this); 400 public BuilderType clearOneof(final OneofDescriptor oneof) { 401 internalGetFieldAccessorTable().getOneof(oneof).clear(this) [all...] |
TextFormat.java | 1543 Descriptors.OneofDescriptor oneof = field.getContainingOneof(); local [all...] |
/external/protobuf/src/google/protobuf/compiler/java/ |
java_context.cc | 118 const OneofDescriptor* oneof = message->oneof_decl(i); local 120 info.name = UnderscoresToCamelCase(oneof->name(), false); 121 info.capitalized_name = UnderscoresToCamelCase(oneof->name(), true); 122 oneof_generator_info_map_[oneof] = info; 182 const OneofDescriptor* oneof) const { 184 FindOrNull(oneof_generator_info_map_, oneof); 186 GOOGLE_LOG(FATAL) << "Can not find OneofGeneratorInfo for oneof: " 187 << oneof->name();
|
java_context.h | 74 // Get the OneofGeneratorInfo for a given oneof. 76 const OneofDescriptor* oneof) const;
|
java_message.cc | 201 const OneofDescriptor* oneof = descriptor_->oneof_decl(i); local 202 const OneofGeneratorInfo* info = context_->GetOneofGeneratorInfo(oneof); 405 // oneof 455 " \"Value is undefined for this oneof enum.\");\n" 815 // oneof [all...] |
/external/protobuf/java/src/test/java/com/google/protobuf/ |
DynamicMessageTest.java | 249 // Test oneof behavior 285 OneofDescriptor oneof = TestAllTypes.getDescriptor().getOneofs().get(0); local 286 assertFalse(builder.hasOneof(oneof)); 287 assertSame(null, builder.getOneofFieldDescriptor(oneof)); 290 assertTrue(builder.hasOneof(oneof)); 291 FieldDescriptor field = oneof.getField(3); 292 assertSame(field, builder.getOneofFieldDescriptor(oneof)); 295 assertTrue(message.hasOneof(oneof)); 299 FieldDescriptor mergedField = oneof.getField(0); 306 builder.clearOneof(oneof); [all...] |
TextFormatTest.java | 990 TestOneof2 oneof = builder.build(); local [all...] |
GeneratedMessageTest.java | 545 Descriptors.OneofDescriptor oneof = local 549 assertSame(field, builder.getOneofFieldDescriptor(oneof)); 552 assertSame(field, message.getOneofFieldDescriptor(oneof)); 558 Descriptors.OneofDescriptor oneof = local 563 assertTrue(builder.hasOneof(oneof)); 565 builder.clearOneof(oneof); 566 assertFalse(builder.hasOneof(oneof)); [all...] |
/frameworks/base/libs/hwui/protos/ |
hwui.proto | 92 oneof drawop {
|
/external/protobuf/src/google/protobuf/compiler/python/ |
python_generator.cc | 763 const OneofDescriptor* oneof = descriptor.oneof_decl(i); local 765 m["oneof_name"] = oneof->name(); 766 for (int j = 0; j < oneof->field_count(); ++j) { 767 m["field_name"] = oneof->field(j)->name(); [all...] |
/prebuilts/tools/darwin-x86_64/protoc/include/google/protobuf/compiler/js/ |
js_generator.h | 219 const OneofDescriptor* oneof) const;
|
/external/protobuf/src/google/protobuf/ |
text_format.cc | 199 // where "baz" and "qux" are members of the same oneof. 448 // Fail if the field is a member of a oneof and another member has already 450 const OneofDescriptor* oneof = field->containing_oneof(); local 451 if (oneof != NULL && reflection->HasOneof(*message, oneof)) { 453 reflection->GetOneofFieldDescriptor(*message, oneof); 456 "of oneof \"" + oneof->name() + "\"."); [all...] |
/external/protobuf/python/google/protobuf/ |
descriptor.py | 230 oneofs: (list of OneofDescriptor) The list of descriptors for oneof fields 287 for oneof in self.oneofs: 288 oneof.containing_type = self 375 containing_oneof: (OneofDescriptor) If the field is a member of a oneof 601 """Descriptor for a oneof field. 603 name: (str) Name of the oneof field. 604 full_name: (str) Full name of the oneof field, including package name. 605 index: (int) 0-based index giving the order of the oneof field inside 611 oneof can contain.
|
/prebuilts/tools/common/m2/repository/com/google/protobuf/protobuf-java/2.6.1/ |
protobuf-java-2.6.1.jar | |
/prebuilts/tools/common/offline-m2/com/google/protobuf/protobuf-java/2.6.1/ |
protobuf-java-2.6.1.jar | |
/prebuilts/tools/common/m2/repository/com/google/protobuf/protobuf-java/3.0.0-beta-2/ |
protobuf-java-3.0.0-beta-2.jar | |
/external/protobuf/src/google/protobuf/compiler/cpp/ |
cpp_message.cc | 412 // Singular field in a oneof 448 // Clear this field only if it is the active field in this oneof, 590 // each oneof with an additional *_NOT_SET value. 774 // Generate oneof function declarations 790 // TODO(jieluo) - Optimize _has_bits_ for repeated and oneof fields. 840 // List fields which doesn't belong to any oneof 871 // For each oneof generate a union 1286 const OneofDescriptor* oneof = descriptor_->oneof_decl(i); local [all...] |
/external/protobuf/python/google/protobuf/pyext/ |
message.cc | 407 // No other field in this oneof, no need to release. 411 const OneofDescriptor* oneof = field->containing_oneof(); local 413 reflection->GetOneofFieldDescriptor(*message, oneof); [all...] |