Home
last modified time | relevance | path

Searched refs:LABEL_OPTIONAL (Results 1 - 25 of 30) sorted by relevance

12

/third_party/protobuf/php/src/Google/Protobuf/Internal/FieldDescriptorProto/
H A DLabel.php17 * Generated from protobuf enum <code>LABEL_OPTIONAL = 1;</code>
19 const LABEL_OPTIONAL = 1;
30 self::LABEL_OPTIONAL => 'LABEL_OPTIONAL',
/third_party/protobuf/src/google/protobuf/
H A 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...]
H A Dextension_set_heavy.cc145 : FieldDescriptor::LABEL_OPTIONAL, \
H A Ddescriptor.h643 LABEL_OPTIONAL = 1, // optional enumerator
694 bool is_optional() const; // shorthand for label() == LABEL_OPTIONAL
2174 return label() == LABEL_OPTIONAL; in is_optional()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
H A 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()
H A 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/
H A 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/
H A Dproto_builder.py128 field_proto.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
H A Ddescriptor.py522 LABEL_OPTIONAL = 1 variable in FieldDescriptor
H A Ddescriptor_pool.py115 field.label == descriptor.FieldDescriptor.LABEL_OPTIONAL)
H A Dtext_format.py535 field.label == descriptor.FieldDescriptor.LABEL_OPTIONAL):
/third_party/protobuf/python/google/protobuf/internal/
H A Dmessage_factory_test.py187 ext.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
204 ext.label = descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL
H A Ddescriptor_pool_test.py635 field.label = descriptor.FieldDescriptor.LABEL_OPTIONAL
1006 label=descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL)
H A Dpython_message.py273 field.label == _FieldDescriptor.LABEL_OPTIONAL)
H A Ddescriptor_test.py77 label=descriptor_pb2.FieldDescriptorProto.LABEL_OPTIONAL)
779 label: LABEL_OPTIONAL
/third_party/protobuf/src/google/protobuf/compiler/
H A 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()
H A Dparser_unittest.cc367 " field { name:\"bar\" label:LABEL_OPTIONAL type:TYPE_INT32 number:34 }" in TEST_F()
540 " name: \"foo\" label: LABEL_OPTIONAL type: TYPE_STRING number: 1" in TEST_F()
556 " field { name: \"foo\" label: LABEL_OPTIONAL type: TYPE_STRING number: " in TEST_F()
606 " field { name:\"a\" label:LABEL_OPTIONAL type:TYPE_INT32 number:1 " in TEST_F()
608 " field { name:\"b\" label:LABEL_OPTIONAL type:TYPE_STRING number:2 " in TEST_F()
610 " field { name:\"c\" label:LABEL_OPTIONAL type_name:\"TestMessage\" " in TEST_F()
612 " field { name:\"d\" label:LABEL_OPTIONAL type:TYPE_GROUP " in TEST_F()
619 " field { name:\"i\" label:LABEL_OPTIONAL type:TYPE_INT32 number:5 }" in TEST_F()
639 " field { name:\"a\" label:LABEL_OPTIONAL type:TYPE_INT32 number:1 " in TEST_F()
641 " field { name:\"b\" label:LABEL_OPTIONAL typ in TEST_F()
[all...]
H A Dcommand_line_interface_unittest.cc694 extension_option->set_label(FieldDescriptorProto::LABEL_OPTIONAL); in TEST_F()
/third_party/protobuf/python/google/protobuf/pyext/
H A 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/java/
H A Djava_message_builder.cc655 case FieldDescriptor::LABEL_OPTIONAL: in GenerateIsInitialized()
H A Djava_message.cc917 case FieldDescriptor::LABEL_OPTIONAL: in GenerateIsInitialized()
/third_party/protobuf/src/google/protobuf/compiler/ruby/
H A Druby_generator.cc85 case FieldDescriptor::LABEL_OPTIONAL: return "optional"; in LabelForField()
/third_party/protobuf/src/google/protobuf/util/
H A Dtype_resolver_util.cc249 case FieldDescriptor::LABEL_OPTIONAL: in ConvertFieldDescriptor()
/third_party/node/deps/npm/node_modules/@sigstore/protobuf-specs/dist/__generated__/google/protobuf/
H A Ddescriptor.js154 /** LABEL_OPTIONAL - 0 is reserved for errors */
155 FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL";
162 case "LABEL_OPTIONAL":
163 return FieldDescriptorProto_Label.LABEL_OPTIONAL;
177 case FieldDescriptorProto_Label.LABEL_OPTIONAL:
178 return "LABEL_OPTIONAL";
/third_party/protobuf/src/google/protobuf/compiler/php/
H A Dphp_generator.cc431 case FieldDescriptor::LABEL_OPTIONAL: return "optional"; in LabelForField()

Completed in 40 milliseconds

12