HomeSort by relevance Sort by last modified time
    Searched refs:oneof (Results 1 - 25 of 123) sorted by null

1 2 3 4 5

  /external/protobuf/java/core/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
175 public boolean hasOneof(OneofDescriptor oneof) {
176 verifyOneofContainingType(oneof);
177 FieldDescriptor field = oneofCases[oneof.getIndex()];
185 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) {
186 verifyOneofContainingType(oneof);
187 return oneofCases[oneof.getIndex()];
316 /** Verifies that the oneof is an oneof of this message. */
317 private void verifyOneofContainingType(OneofDescriptor oneof) {
    [all...]
MessageReflection.java 302 * Returns true if the given oneof is set.
305 * {@code oneof.getContainingType() != getDescriptorForType()}.
307 boolean hasOneof(Descriptors.OneofDescriptor oneof);
310 * Clears the oneof. This is exactly equivalent to calling the generated
311 * "clear" accessor method corresponding to the oneof.
313 MergeTarget clearOneof(Descriptors.OneofDescriptor oneof);
316 * Obtains the FieldDescriptor if the given oneof is set. Returns null
319 Descriptors.FieldDescriptor getOneofFieldDescriptor(Descriptors.OneofDescriptor oneof);
419 public boolean hasOneof(Descriptors.OneofDescriptor oneof) {
420 return builder.hasOneof(oneof);
    [all...]
AbstractMessage.java 76 public boolean hasOneof(OneofDescriptor oneof) {
82 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) {
308 public boolean hasOneof(OneofDescriptor oneof) {
314 public FieldDescriptor getOneofFieldDescriptor(OneofDescriptor oneof) {
321 public BuilderType clearOneof(OneofDescriptor oneof) {
Message.java 129 * * For oneof groups, if the other message has one of the fields set,
131 * of the other message, so that the oneof constraint is preserved.
220 * Clears the oneof. This is exactly equivalent to calling the generated
221 * "clear" accessor method corresponding to the oneof.
223 Builder clearOneof(Descriptors.OneofDescriptor oneof);
GeneratedMessage.java 130 * If the field is part of a Oneof, then at maximum one field in the Oneof is set
134 // Skip other fields in the Oneof we know are not set
137 // If no field is set in the Oneof, skip all the fields in the Oneof
140 // Get the pointer to the only field which is set in the Oneof
143 // If we are not in a Oneof, we need to check if the field is set and if it is repeated
217 public boolean hasOneof(final OneofDescriptor oneof) {
218 return internalGetFieldAccessorTable().getOneof(oneof).has(this);
222 public FieldDescriptor getOneofFieldDescriptor(final OneofDescriptor oneof) {
    [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 78 // Get the OneofGeneratorInfo for a given oneof.
80 const OneofDescriptor* oneof) const;
  /device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEConfig/
TrEEConfig.vfr 39 oneof varid = TREE_CONFIGURATION.TpmDevice,
55 oneof name = Tpm2Operation,
  /external/protobuf/java/core/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...]
  /external/protobuf/src/google/protobuf/compiler/ruby/
ruby_generator.cc 167 void GenerateOneof(const google::protobuf::OneofDescriptor* oneof,
170 "oneof :$name$ do\n",
171 "name", oneof->name());
174 for (int i = 0; i < oneof->field_count(); i++) {
175 const FieldDescriptor* field = oneof->field(i);
205 const OneofDescriptor* oneof = message->oneof_decl(i); local
206 GenerateOneof(oneof, printer);
ruby_generated_code.rb 41 oneof :my_oneof do
  /device/linaro/bootloader/edk2/SecurityPkg/Tcg/TcgConfigDxe/
TcgConfig.vfr 40 oneof varid = TCG_CONFIGURATION.TpmOperation,
  /external/protobuf/src/google/protobuf/compiler/javanano/
javanano_helpers.h 57 string UnderscoresToCamelCase(const OneofDescriptor* oneof);
59 string UnderscoresToCapitalizedCamelCase(const OneofDescriptor* oneof);
javanano_helpers.cc 157 string UnderscoresToCamelCase(const OneofDescriptor* oneof) {
158 return UnderscoresToCamelCaseImpl(oneof->name(), false);
161 string UnderscoresToCapitalizedCamelCase(const OneofDescriptor* oneof) {
162 return UnderscoresToCamelCaseImpl(oneof->name(), true);
  /frameworks/base/libs/hwui/protos/
hwui.proto 92 oneof drawop {
  /external/protobuf/php/ext/google/protobuf/
storage.c 329 // one slot per oneof.
336 // space for oneof cases is conceptually as wide as field tag numbers. In
337 // practice, it's unlikely that a oneof would have more than e.g. 256 or 64K
339 // consecutive case numbers and then pick a smaller oneof case slot size, but
343 const upb_oneofdef* oneof = upb_msg_iter_oneof(&oit); local
351 // Assign all fields in the oneof this same offset.
352 for (upb_oneof_begin(&fit, oneof); !upb_oneof_done(&fit);
363 const upb_oneofdef* oneof = upb_msg_iter_oneof(&oit); local
369 // Assign all fields in the oneof this same offset.
370 for (upb_oneof_begin(&fit, oneof); !upb_oneof_done(&fit)
    [all...]
  /external/protobuf/src/google/protobuf/compiler/js/
js_generator.cc 439 // Does JSPB ignore this entire oneof? True only if all fields are ignored.
440 bool IgnoreOneof(const OneofDescriptor* oneof) {
441 for (int i = 0; i < oneof->field_count(); i++) {
442 if (!IgnoreField(oneof->field(i))) {
522 string JSOneofName(const OneofDescriptor* oneof) {
523 return ToUpperCamel(ParseLowerUnderscore(oneof->name()));
548 string JSOneofIndex(const OneofDescriptor* oneof) {
550 for (int i = 0; i < oneof->containing_type()->oneof_decl_count(); i++) {
551 const OneofDescriptor* o = oneof->containing_type()->oneof_decl(i);
552 // If at least one field in this oneof is not JSPB-ignored, count the oneof
1026 const OneofDescriptor* oneof = desc->oneof_decl(i); local
    [all...]
  /external/protobuf/csharp/src/Google.Protobuf/Reflection/
GeneratedClrTypeInfo.cs 63 /// Irrelevant for file descriptors; the CLR property "base" names (in message descriptor oneof order)
64 /// for oneofs in the message for message descriptors. It is expected that for a oneof name of "Foo",
81 /// Creates a GeneratedClrTypeInfo for a message descriptor, with nested types, nested enums, the CLR type, property names and oneof names.
MessageDescriptor.cs 76 (oneof, index) =>
77 new OneofDescriptor(oneof, file, this, index, generatedCodeInfo.OneofNames[index]));
192 /// An unmodifiable list of the "oneof" field collections in this message type.
234 foreach (OneofDescriptor oneof in Oneofs)
236 oneof.CrossLink();
  /device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Config/
Tcg2Config.vfr 45 oneof varid = TCG2_CONFIGURATION.TpmDevice,
73 oneof name = Tpm2Operation,
  /device/linaro/bootloader/edk2/NetworkPkg/IScsiDxe/
IScsiConfigVfr.vfr 132 oneof varid = ISCSI_CONFIG_IFR_NVDATA.Enabled,
142 oneof varid = ISCSI_CONFIG_IFR_NVDATA.IpMode,
284 oneof varid = ISCSI_CONFIG_IFR_NVDATA.AuthenticationType,
293 oneof varid = ISCSI_CONFIG_IFR_NVDATA.CHAPType,
  /external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
RubyMessage.java 100 Descriptors.OneofDescriptor oneof = fieldDescriptor.getContainingOneof();
101 if (oneof != null) {
102 oneofCases.put(oneof, fieldDescriptor);
    [all...]
  /device/linaro/bootloader/edk2/NetworkPkg/Ip6Dxe/
Ip6Config.vfr 108 oneof varid = IP6_CONFIG_IFR_NVDATA.Policy,
  /external/protobuf/src/google/protobuf/
arena_unittest.cc 907 const OneofDescriptor* oneof = desc->FindOneofByName( local
    [all...]

Completed in 883 milliseconds

1 2 3 4 5