Home
last modified time | relevance | path

Searched refs:enum_type (Results 1 - 25 of 96) sorted by relevance

1234

/third_party/protobuf/benchmarks/util/
H A Dschema_proto2_to_proto3_util.h94 void ScrubEnum(EnumDescriptorProto *enum_type) { in ScrubEnum() argument
95 if (enum_type->value(0).number() != 0) { in ScrubEnum()
97 for (int j = 0; j < enum_type->value().size(); j++) { in ScrubEnum()
98 if (enum_type->value(j).number() == 0) { in ScrubEnum()
100 temp_enum_value.CopyFrom(enum_type->value(j)); in ScrubEnum()
101 enum_type->mutable_value(j)->CopyFrom(enum_type->value(0)); in ScrubEnum()
102 enum_type->mutable_value(0)->CopyFrom(temp_enum_value); in ScrubEnum()
108 enum_type->mutable_value()->Add(); in ScrubEnum()
109 for (int i = enum_type in ScrubEnum()
[all...]
/third_party/protobuf/src/google/protobuf/util/internal/
H A Dutility.cc195 const google::protobuf::Enum* enum_type, StringPiece enum_name) { in FindEnumValueByNameOrNull()
196 if (enum_type != nullptr) { in FindEnumValueByNameOrNull()
197 for (int i = 0; i < enum_type->enumvalue_size(); ++i) { in FindEnumValueByNameOrNull()
198 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNameOrNull()
208 const google::protobuf::Enum* enum_type, int32 value) { in FindEnumValueByNumberOrNull()
209 if (enum_type != nullptr) { in FindEnumValueByNumberOrNull()
210 for (int i = 0; i < enum_type->enumvalue_size(); ++i) { in FindEnumValueByNumberOrNull()
211 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNumberOrNull()
221 const google::protobuf::Enum* enum_type, StringPiece enum_name) { in FindEnumValueByNameWithoutUnderscoreOrNull()
222 if (enum_type ! in FindEnumValueByNameWithoutUnderscoreOrNull()
194 FindEnumValueByNameOrNull( const google::protobuf::Enum* enum_type, StringPiece enum_name) FindEnumValueByNameOrNull() argument
207 FindEnumValueByNumberOrNull( const google::protobuf::Enum* enum_type, int32 value) FindEnumValueByNumberOrNull() argument
220 FindEnumValueByNameWithoutUnderscoreOrNull( const google::protobuf::Enum* enum_type, StringPiece enum_name) FindEnumValueByNameWithoutUnderscoreOrNull() argument
[all...]
H A Ddatapiece.cc274 StatusOr<int> DataPiece::ToEnum(const google::protobuf::Enum* enum_type, in ToEnum() argument
285 FindEnumValueByNameOrNull(enum_type, enum_name); in ToEnum()
292 FindEnumValueByNumberOrNull(enum_type, int_value.value())) { in ToEnum()
305 value = FindEnumValueByNameOrNull(enum_type, enum_name); in ToEnum()
313 value = FindEnumValueByNameWithoutUnderscoreOrNull(enum_type, enum_name); in ToEnum()
320 if (enum_type->enumvalue_size() > 0) { in ToEnum()
321 return enum_type->enumvalue(0).number(); in ToEnum()
H A Dutility.h135 const google::protobuf::Enum* enum_type, StringPiece enum_name);
140 const google::protobuf::Enum* enum_type, int32 value);
147 const google::protobuf::Enum* enum_type, StringPiece enum_name);
H A Dtype_info.cc98 std::unique_ptr<google::protobuf::Enum> enum_type(
101 type_resolver_->ResolveEnumType(string_type_url, enum_type.get());
103 status.ok() ? StatusOrEnum(enum_type.release()) : StatusOrEnum(status);
/third_party/protobuf/php/src/Google/Protobuf/Internal/
H A DFileDescriptor.php40 private $enum_type = []; variable
64 return $this->enum_type;
69 $this->enum_type[]= $desc;
H A DFieldDescriptor.php47 private $enum_type; variable
152 public function setEnumType($enum_type)
154 $this->enum_type = $enum_type; variable
159 return $this->enum_type;
H A DDescriptor.php45 private $enum_type = []; variable
101 $this->enum_type[] = $desc;
106 return $this->enum_type;
H A DDescriptorProto.php37 * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code>
39 private $enum_type; variable
74 * @type \Google\Protobuf\Internal\EnumDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $enum_type
188 * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code>
193 return $this->enum_type;
197 * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code>
204 $this->enum_type = $arr; variable
H A DFileDescriptorProto.php58 * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code>
60 private $enum_type; variable
109 * @type \Google\Protobuf\Internal\EnumDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $enum_type
307 * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code>
312 return $this->enum_type;
316 * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code>
323 $this->enum_type = $arr; variable
H A DDescriptorPool.php102 foreach ($descriptor->getEnumType() as $enum_type) {
103 $this->addEnumDescriptor($enum_type);
/third_party/protobuf/python/google/protobuf/
H A Ddescriptor_database.py77 for enum in file_desc_proto.enum_type:
176 for enum_type in desc_proto.enum_type:
177 yield '.'.join((message_name, enum_type.name))
H A Ddescriptor_pool.py775 for enum_type in file_proto.enum_type:
776 file_descriptor.enum_types_by_name[enum_type.name] = (
777 self._ConvertEnumDescriptor(enum_type, file_proto.package,
859 for enum in desc_proto.enum_type]
998 enum_type=None,
1043 """Sets the field's type, cpp_type, message_type and enum_type.
1070 field_desc.enum_type = desc
1085 field_desc.default_value = field_desc.enum_type.values_by_name[
1105 field_desc.default_value = field_desc.enum_type
[all...]
/third_party/protobuf/python/google/protobuf/internal/
H A Denum_type_wrapper.py48 def __init__(self, enum_type):
50 self._enum_type = enum_type
51 self.DESCRIPTOR = enum_type # pylint: disable=invalid-name
H A Ddescriptor_test.py78 enum_proto = message_proto.enum_type.add(
532 self.assertEqual(None, field_descriptor.enum_type)
847 """enum_type: <
862 enum_type: <
957 enum_type = nested_type.enum_type.add()
958 enum_type.name = 'FOO'
959 enum_type_val = enum_type.value.add()
989 self.assertEqual(result.nested_types[0].fields[0].enum_type,
1002 enum_type
[all...]
/third_party/protobuf/src/google/protobuf/util/
H A Dtype_resolver_util.cc93 Enum* enum_type) override {
105 ConvertEnumDescriptor(descriptor, enum_type);
269 field->set_type_url(GetTypeUrl(descriptor->enum_type())); in ConvertFieldDescriptor()
282 Enum* enum_type) { in ConvertEnumDescriptor()
283 enum_type->Clear(); in ConvertEnumDescriptor()
284 enum_type->set_name(descriptor->full_name()); in ConvertEnumDescriptor()
285 enum_type->mutable_source_context()->set_file_name( in ConvertEnumDescriptor()
289 EnumValue* value = enum_type->mutable_enumvalue()->Add(); in ConvertEnumDescriptor()
297 ConvertEnumOptions(descriptor->options(), enum_type->mutable_options()); in ConvertEnumDescriptor()
281 ConvertEnumDescriptor(const EnumDescriptor* descriptor, Enum* enum_type) ConvertEnumDescriptor() argument
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
H A Dobjectivec_enum_field.cc48 string type = EnumName(descriptor->enum_type()); in SetEnumVariables()
54 (descriptor->file() != descriptor->enum_type()->file())) { in SetEnumVariables()
124 if (descriptor_->file() != descriptor_->enum_type()->file()) { in DetermineForwardDeclarations()
/third_party/mesa3d/src/vulkan/util/
H A Dgen_enum_to_str.py374 for enum_type in xml.findall('./enums[@type="enum"]'):
375 enum = enum_factory(enum_type.attrib['name'])
376 for value in enum_type.findall('./enum'):
380 for enum_type in xml.findall('./enums[@type="bitmask"]'):
381 bitwidth = int(enum_type.attrib.get('bitwidth', 32))
382 enum = bitmask_factory(enum_type.attrib['name'], bitwidth=bitwidth)
383 for value in enum_type.findall('./enum'):
/third_party/protobuf/src/google/protobuf/compiler/ruby/
H A Druby_generator.cc193 "subtype", value_field->enum_type()->full_name()); in GenerateField()
215 "subtype", field->enum_type()->full_name()); in GenerateField()
281 GenerateEnum(message->enum_type(i), printer); in GenerateMessage()
387 GenerateEnumAssignment(nested_prefix, message->enum_type(i), printer); in GenerateMessageAssignment()
471 field->enum_type()->file() == file)) { in UsesTypeFromFile()
562 GenerateEnum(file->enum_type(i), printer); in GenerateFile()
575 GenerateEnumAssignment("", file->enum_type(i), printer); in GenerateFile()
/third_party/protobuf/src/google/protobuf/compiler/
H A Dparser_unittest.cc742 " enum_type { name: \"NestedEnum\" }" in TEST_F()
1058 "enum_type {" in TEST_F()
1076 "enum_type {" in TEST_F()
1096 "enum_type {" in TEST_F()
1130 "enum_type {" in TEST_F()
1151 "enum_type {" in TEST_F()
3104 EXPECT_TRUE(HasSpan('a', 'd', file_.enum_type(0))); in TEST_F()
3105 EXPECT_TRUE(HasSpan('b', 'c', file_.enum_type(0), "name")); in TEST_F()
3106 EXPECT_TRUE(HasSpan('e', 'h', file_.enum_type(1))); in TEST_F()
3107 EXPECT_TRUE(HasSpan('f', 'g', file_.enum_type( in TEST_F()
[all...]
/third_party/skia/third_party/externals/angle2/src/common/
H A Dgen_packed_gl_enums.py23 'enum_type': 'GLenum',
30 'enum_type': 'EGLenum',
37 'enum_type': 'CLenum',
271 enum_type = generator['enum_type']
274 namespace, enum_type)
276 enum_type)
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
H A Dgen_emulated_builtin_function_tables.py80 def enum_type(arg): function
105 func += "BuiltInId::" + data['op'] + "_" + "_".join([enum_type(arg) for arg in data['args']
/third_party/protobuf/src/google/protobuf/compiler/python/
H A Dpython_generator.cc479 // TODO(falk): Also print options and fix the message_type, enum_type, in PrintFileDescriptor()
492 const EnumDescriptor& enum_descriptor = *file_->enum_type(i); in PrintTopLevelEnums()
579 PrintEnum(*descriptor.enum_type(i)); in PrintNestedEnums()
765 ModuleLevelDescriptorName(*message_descriptor.enum_type(i)); in PrintDescriptor()
914 // sets the message_type and enum_type of all message and enum fields to point
934 const EnumDescriptor& enum_descriptor = *descriptor.enum_type(i); in FixForeignFieldsInDescriptor()
1003 // Sets any necessary message_type and enum_type attributes
1024 const EnumDescriptor* enum_type = field.enum_type(); in FixForeignFieldsInField() local
1025 if (enum_type) { in FixForeignFieldsInField()
[all...]
/third_party/protobuf/src/google/protobuf/compiler/java/
H A Djava_file.cc323 EnumGenerator(file_->enum_type(i), immutable_api_, context_.get()) in Generate()
326 EnumLiteGenerator(file_->enum_type(i), immutable_api_, context_.get()) in Generate()
641 EnumGenerator generator(file_->enum_type(i), immutable_api_, in GenerateSiblings()
644 package_dir, java_package_, file_->enum_type(i), context, file_list, in GenerateSiblings()
648 EnumLiteGenerator generator(file_->enum_type(i), immutable_api_, in GenerateSiblings()
651 package_dir, java_package_, file_->enum_type(i), context, file_list, in GenerateSiblings()
/third_party/protobuf/src/google/protobuf/compiler/cpp/
H A Dcpp_extension.cc70 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator()
72 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator()

Completed in 19 milliseconds

1234