Home
last modified time | relevance | path

Searched refs:LABEL_OPTIONAL (Results 1 – 25 of 38) sorted by relevance

12

/third_party/protobuf/php/src/Google/Protobuf/Internal/FieldDescriptorProto/
DLabel.php19 const LABEL_OPTIONAL = 1; define in Google\\Protobuf\\Internal\\FieldDescriptorProto\\Label
30 self::LABEL_OPTIONAL => 'LABEL_OPTIONAL',
/third_party/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc327 FieldDescriptorProto::LABEL_OPTIONAL, in SetUp()
338 FieldDescriptorProto::LABEL_OPTIONAL, in SetUp()
671 AddField(message, "bar", 6, FieldDescriptorProto::LABEL_OPTIONAL, in SetUp()
677 AddField(message, "qux", 15, FieldDescriptorProto::LABEL_OPTIONAL, in SetUp()
698 AddField(entry, "key", 1, FieldDescriptorProto::LABEL_OPTIONAL, in SetUp()
700 AddField(entry, "value", 2, FieldDescriptorProto::LABEL_OPTIONAL, in SetUp()
713 AddField(message4, "field_name1", 1, FieldDescriptorProto::LABEL_OPTIONAL, in SetUp()
715 AddField(message4, "fieldName2", 2, FieldDescriptorProto::LABEL_OPTIONAL, in SetUp()
717 AddField(message4, "FieldName3", 3, FieldDescriptorProto::LABEL_OPTIONAL, in SetUp()
719 AddField(message4, "_field_name4", 4, FieldDescriptorProto::LABEL_OPTIONAL, in SetUp()
[all …]
Ddescriptor.h643 LABEL_OPTIONAL = 1, // optional enumerator
2174 return label() == LABEL_OPTIONAL; in is_optional()
Dextension_set_heavy.cc145 : FieldDescriptor::LABEL_OPTIONAL, \
Ddescriptor.proto174 LABEL_OPTIONAL = 1; enumerator
237 // optional with `LABEL_OPTIONAL`.
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DDescriptorsTest.java428 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testDescriptorValidatorException()
462 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testDescriptorComplexCrosslink()
473 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testDescriptorComplexCrosslink()
550 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testUnknownFieldsDenied()
575 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testUnknownFieldsAllowed()
603 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testHiddenDependency()
642 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testPublicDependency()
DTextFormatTest.java581 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testPrintAny_anyWithDynamicMessage()
587 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testPrintAny_anyWithDynamicMessage()
616 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testPrintAny_anyFromWithNoValueField()
639 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testPrintAny_anyFromWithNoTypeUrlField()
662 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testPrintAny_anyWithInvalidFieldType()
668 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testPrintAny_anyWithInvalidFieldType()
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DDescriptorsTest.java443 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testDescriptorValidatorException()
475 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testDescriptorComplexCrosslink()
484 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testDescriptorComplexCrosslink()
550 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testHiddenDependency()
586 .setLabel(FieldDescriptorProto.Label.LABEL_OPTIONAL) in testPublicDependency()
/third_party/protobuf/python/google/protobuf/internal/
Dmessage_factory_test.py187 ext.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
204 ext.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
Ddescriptor_pool_test.py635 field.label = descriptor.FieldDescriptor.LABEL_OPTIONAL
1006 label=descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL)
/third_party/protobuf/python/google/protobuf/
Dproto_builder.py128 field_proto.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
Ddescriptor.py522 LABEL_OPTIONAL = 1 variable in FieldDescriptor
Ddescriptor_pool.py115 field.label == descriptor.FieldDescriptor.LABEL_OPTIONAL)
/third_party/protobuf/python/google/protobuf/pyext/
Dextension_dict.cc221 if (descriptor->label() != FieldDescriptor::LABEL_OPTIONAL || in ass_subscript()
253 extension->label() == FieldDescriptor::LABEL_OPTIONAL) { in _FindExtensionByName()
/third_party/protobuf/src/google/protobuf/compiler/
Dparser.cc947 if (label == FieldDescriptorProto::LABEL_OPTIONAL && in ParseMessageField()
1013 field->set_label(FieldDescriptorProto::LABEL_OPTIONAL); in ParseMessageFieldNoLabel()
1019 field->set_label(FieldDescriptorProto::LABEL_OPTIONAL); in ParseMessageFieldNoLabel()
1141 key_field->set_label(FieldDescriptorProto::LABEL_OPTIONAL); in GenerateMapEntry()
1150 value_field->set_label(FieldDescriptorProto::LABEL_OPTIONAL); in GenerateMapEntry()
1950 field->set_label(FieldDescriptorProto::LABEL_OPTIONAL); in ParseOneof()
2252 *label = FieldDescriptorProto::LABEL_OPTIONAL; in ParseLabel()
Dparser_unittest.cc2112 field->set_label(FieldDescriptorProto::LABEL_OPTIONAL); in TEST_F()
2118 extension->set_label(FieldDescriptorProto::LABEL_OPTIONAL); in TEST_F()
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_message_builder.cc655 case FieldDescriptor::LABEL_OPTIONAL: in GenerateIsInitialized()
Djava_message.cc917 case FieldDescriptor::LABEL_OPTIONAL: in GenerateIsInitialized()
/third_party/protobuf/src/google/protobuf/util/
Dtype_resolver_util.cc249 case FieldDescriptor::LABEL_OPTIONAL: in ConvertFieldDescriptor()
/third_party/protobuf/docs/
Dimplementing_proto3_presence.md45 descriptors already use `LABEL_OPTIONAL` for proto3 singular fields, which do
47 protos and assumes that `LABEL_OPTIONAL` in proto3 means "no presence." Changing
/third_party/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator.cc85 case FieldDescriptor::LABEL_OPTIONAL: return "optional"; in LabelForField()
/third_party/grpc/third_party/upb/tests/bindings/lua/
Dtest_upb.lua35 assert_equal(upb.LABEL_OPTIONAL, f:label())
/third_party/grpc/third_party/upb/upbc/
Dprotoc-gen-upb.cc718 case protobuf::FieldDescriptor::LABEL_OPTIONAL: in TryFillTableEntry()
/third_party/grpc/third_party/upb/benchmarks/
Ddescriptor_sv.proto170 LABEL_OPTIONAL = 1; enumerator
233 // optional with `LABEL_OPTIONAL`.
Ddescriptor.proto170 LABEL_OPTIONAL = 1; enumerator
233 // optional with `LABEL_OPTIONAL`.

12