Home
last modified time | relevance | path

Searched refs:enum_type (Results 1 – 25 of 104) sorted by relevance

12345

/external/nanopb-c/generator/google/protobuf/
Ddescriptor_pb2.py191 message_type=None, enum_type=None, containing_type=None,
219 message_type=None, enum_type=None, containing_type=None,
226 message_type=None, enum_type=None, containing_type=None,
233 message_type=None, enum_type=None, containing_type=None,
240 message_type=None, enum_type=None, containing_type=None,
247 message_type=None, enum_type=None, containing_type=None,
254 message_type=None, enum_type=None, containing_type=None,
261 message_type=None, enum_type=None, containing_type=None,
268 message_type=None, enum_type=None, containing_type=None,
275 message_type=None, enum_type=None, containing_type=None,
[all …]
Ddescriptor_database.py55 for enum in file_desc_proto.enum_type:
119 for enum_type in desc_proto.enum_type:
120 yield '.'.join((message_name, enum_type.name))
Ddescriptor_pool.py208 symbols = list(self._ExtractEnums(dep_proto.enum_type, package))
216 for enum_type in file_proto.enum_type:
217 self._ConvertEnumDescriptor(enum_type, file_proto.package,
262 for enum in desc_proto.enum_type]
368 enum_type=None,
409 field_desc.enum_type = desc
424 field_desc.default_value = field_desc.enum_type.values_by_name[
474 for symbol in self._ExtractEnums(desc_proto.enum_type, message_name):
/external/nanopb-c/generator/proto/
Dnanopb_pb2.py60 message_type=None, enum_type=None, containing_type=None,
68 message_type=None, enum_type=None, containing_type=None,
76 message_type=None, enum_type=None, containing_type=None,
84 message_type=None, enum_type=None, containing_type=None,
100 message_type=None, enum_type=None, containing_type=None,
107 message_type=None, enum_type=None, containing_type=None,
114 message_type=None, enum_type=None, containing_type=None,
121 message_type=None, enum_type=None, containing_type=None,
128 message_type=None, enum_type=None, containing_type=None,
146 _NANOPBOPTIONS.fields_by_name['type'].enum_type = _FIELDTYPE
Dplugin_pb2.py29 message_type=None, enum_type=None, containing_type=None,
36 message_type=None, enum_type=None, containing_type=None,
43 message_type=None, enum_type=None, containing_type=None,
71 message_type=None, enum_type=None, containing_type=None,
78 message_type=None, enum_type=None, containing_type=None,
85 message_type=None, enum_type=None, containing_type=None,
112 message_type=None, enum_type=None, containing_type=None,
119 message_type=None, enum_type=None, containing_type=None,
/external/nanopb-c/generator/google/protobuf/compiler/
Dplugin_pb2.py33 message_type=None, enum_type=None, containing_type=None,
40 message_type=None, enum_type=None, containing_type=None,
47 message_type=None, enum_type=None, containing_type=None,
75 message_type=None, enum_type=None, containing_type=None,
82 message_type=None, enum_type=None, containing_type=None,
89 message_type=None, enum_type=None, containing_type=None,
116 message_type=None, enum_type=None, containing_type=None,
123 message_type=None, enum_type=None, containing_type=None,
/external/protobuf/src/google/protobuf/util/
Dtype_resolver_util.cc95 Status ResolveEnumType(const string& type_url, Enum* enum_type) { in ResolveEnumType() argument
111 ConvertEnumDescriptor(descriptor, enum_type); in ResolveEnumType()
169 field->set_type_url(GetTypeUrl(descriptor->enum_type())); in ConvertFieldDescriptor()
182 Enum* enum_type) { in ConvertEnumDescriptor() argument
183 enum_type->Clear(); in ConvertEnumDescriptor()
184 enum_type->set_name(descriptor->full_name()); in ConvertEnumDescriptor()
185 enum_type->mutable_source_context()->set_file_name( in ConvertEnumDescriptor()
189 EnumValue* value = enum_type->mutable_enumvalue()->Add(); in ConvertEnumDescriptor()
/external/tensorflow/tensorflow/contrib/cloud/kernels/
Dbigquery_table_accessor.cc43 BigQueryTableAccessor::ColumnType* enum_type) { in ParseColumnType() argument
45 *enum_type = BigQueryTableAccessor::ColumnType::kRecord; in ParseColumnType()
47 *enum_type = BigQueryTableAccessor::ColumnType::kString; in ParseColumnType()
49 *enum_type = BigQueryTableAccessor::ColumnType::kBytes; in ParseColumnType()
51 *enum_type = BigQueryTableAccessor::ColumnType::kInteger; in ParseColumnType()
53 *enum_type = BigQueryTableAccessor::ColumnType::kFloat; in ParseColumnType()
55 *enum_type = BigQueryTableAccessor::ColumnType::kBoolean; in ParseColumnType()
57 *enum_type = BigQueryTableAccessor::ColumnType::kTimestamp; in ParseColumnType()
59 *enum_type = BigQueryTableAccessor::ColumnType::kDate; in ParseColumnType()
61 *enum_type = BigQueryTableAccessor::ColumnType::kTime; in ParseColumnType()
[all …]
/external/protobuf/python/google/protobuf/
Ddescriptor_database.py73 for enum in file_desc_proto.enum_type:
140 for enum_type in desc_proto.enum_type:
141 yield '.'.join((message_name, enum_type.name))
Ddescriptor_pool.py341 for enum_type in message_desc.enum_types:
342 _AddEnumDescriptor(enum_type)
347 for enum_type in file_descriptor.enum_types_by_name.values():
348 _AddEnumDescriptor(enum_type)
369 for enum_type in file_proto.enum_type:
370 file_descriptor.enum_types_by_name[enum_type.name] = (
371 self._ConvertEnumDescriptor(enum_type, file_proto.package,
435 for enum in desc_proto.enum_type]
553 enum_type=None,
622 field_desc.enum_type = desc
[all …]
Ddescriptor.py303 for enum_type in self.enum_types:
304 enum_type.containing_type = self
498 default_value, message_type, enum_type, containing_type, argument
508 default_value, message_type, enum_type, containing_type, argument
531 self.enum_type = enum_type
926 for enum_proto in desc_proto.enum_type:
/external/protobuf/src/google/protobuf/util/internal/
Dutility.cc178 const google::protobuf::Enum* enum_type, StringPiece enum_name) { in FindEnumValueByNameOrNull() argument
179 if (enum_type != NULL) { in FindEnumValueByNameOrNull()
180 for (int i = 0; i < enum_type->enumvalue_size(); ++i) { in FindEnumValueByNameOrNull()
181 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNameOrNull()
191 const google::protobuf::Enum* enum_type, int32 value) { in FindEnumValueByNumberOrNull() argument
192 if (enum_type != NULL) { in FindEnumValueByNumberOrNull()
193 for (int i = 0; i < enum_type->enumvalue_size(); ++i) { in FindEnumValueByNumberOrNull()
194 const google::protobuf::EnumValue& enum_value = enum_type->enumvalue(i); in FindEnumValueByNumberOrNull()
Dtype_info.cc96 google::protobuf::scoped_ptr<google::protobuf::Enum> enum_type( in GetEnumByTypeUrl() local
99 type_resolver_->ResolveEnumType(string_type_url, enum_type.get()); in GetEnumByTypeUrl()
101 status.ok() ? StatusOrEnum(enum_type.release()) : StatusOrEnum(status); in GetEnumByTypeUrl()
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_enum_field.cc79 const EnumDescriptor* enum_type = descriptor->enum_type(); in SetEnumVariables() local
81 + ToJavaName(params, enum_type->name(), true, in SetEnumVariables()
82 enum_type->containing_type(), enum_type->file()); in SetEnumVariables()
116 LoadEnumValues(params, descriptor->enum_type(), &canonical_values_); in EnumFieldGenerator()
269 LoadEnumValues(params, descriptor->enum_type(), &canonical_values_); in AccessorEnumFieldGenerator()
379 LoadEnumValues(params, descriptor->enum_type(), &canonical_values_); in RepeatedEnumFieldGenerator()
Djavanano_file.cc143 if (file_->enum_type(i)->name() == classname_) { in Validate()
193 EnumGenerator(file_->enum_type(i), params_).Generate(printer); in Generate()
253 file_->enum_type(i), in GenerateSiblings()
/external/protobuf/python/google/protobuf/internal/
Denum_type_wrapper.py46 def __init__(self, enum_type): argument
48 self._enum_type = enum_type
49 self.DESCRIPTOR = enum_type;
Ddescriptor_test.py74 enum_proto = message_proto.enum_type.add(
734 enum_type = nested_type.enum_type.add()
735 enum_type.name = 'FOO'
736 enum_type_val = enum_type.value.add()
766 self.assertEqual(result.nested_types[0].fields[0].enum_type,
774 enum_type = message_type.enum_type.add()
775 enum_type.name = 'FOO'
776 enum_type_val = enum_type.value.add()
/external/nanopb-c/generator/google/protobuf/internal/
Denum_type_wrapper.py46 def __init__(self, enum_type): argument
48 self._enum_type = enum_type
49 self.DESCRIPTOR = enum_type;
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_enum_field.cc50 string type = EnumName(descriptor->enum_type()); in SetEnumVariables()
56 (descriptor->file() != descriptor->enum_type()->file())) { in SetEnumVariables()
122 if (descriptor_->file() != descriptor_->enum_type()->file()) { in DetermineForwardDeclarations()
/external/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator.cc138 "subtype", value_field->enum_type()->full_name()); in GenerateField()
160 "subtype", field->enum_type()->full_name()); in GenerateField()
216 GenerateEnum(message->enum_type(i), printer); in GenerateMessage()
285 GenerateEnumAssignment(nested_prefix, message->enum_type(i), printer); in GenerateMessageAssignment()
345 field->enum_type()->file() == file)) { in UsesTypeFromFile()
423 GenerateEnum(file->enum_type(i), printer); in GenerateFile()
434 GenerateEnumAssignment("", file->enum_type(i), printer); in GenerateFile()
/external/perfetto/src/protozero/protoc_plugin/
Dprotozero_generator.cc127 const EnumDescriptor* enumeration = field->enum_type(); in IsTinyEnumField()
154 enums_.push_back(source_->enum_type(i)); in CollectDescriptors()
158 enums_.push_back(message->enum_type(i)); in CollectDescriptors()
212 if (public_imports_.count(field->enum_type()->file()) == 0) { in CollectDependencies()
213 referenced_enums_.insert(field->enum_type()); in CollectDependencies()
406 cpp_type = GetCppClassName(field->enum_type(), true); in GenerateSimpleFieldDescriptor()
555 const EnumDescriptor* nested_enum = message->enum_type(i); in GenerateMessageDescriptor()
563 const EnumDescriptor* nested_enum = message->enum_type(i); in GenerateMessageDescriptor()
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_extension.cc71 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator()
73 type_traits_.append(ClassName(descriptor_->enum_type(), true)); in ExtensionGenerator()
187 "type", ClassName(descriptor_->enum_type(), true)); in GenerateRegistration()
/external/protobuf/src/google/protobuf/compiler/
Dparser_unittest.cc2604 EXPECT_TRUE(HasSpan('a', 'd', file_.enum_type(0))); in TEST_F()
2605 EXPECT_TRUE(HasSpan('b', 'c', file_.enum_type(0), "name")); in TEST_F()
2606 EXPECT_TRUE(HasSpan('e', 'h', file_.enum_type(1))); in TEST_F()
2607 EXPECT_TRUE(HasSpan('f', 'g', file_.enum_type(1), "name")); in TEST_F()
2620 const EnumValueDescriptorProto& bar = file_.enum_type(0).value(0); in TEST_F()
2621 const EnumValueDescriptorProto& baz = file_.enum_type(0).value(1); in TEST_F()
2632 EXPECT_TRUE(HasSpan(file_.enum_type(0))); in TEST_F()
2633 EXPECT_TRUE(HasSpan(file_.enum_type(0), "name")); in TEST_F()
2643 const EnumDescriptorProto& bar = file_.message_type(0).enum_type(0); in TEST_F()
2644 const EnumDescriptorProto& baz = file_.message_type(0).enum_type(1); in TEST_F()
[all …]
/external/protobuf/src/google/protobuf/compiler/java/
Djava_file.cc289 EnumGenerator(file_->enum_type(i), immutable_api_, context_.get()) in Generate()
292 EnumLiteGenerator(file_->enum_type(i), immutable_api_, context_.get()) in Generate()
562 EnumGenerator generator(file_->enum_type(i), immutable_api_, in GenerateSiblings()
565 file_->enum_type(i), in GenerateSiblings()
570 EnumLiteGenerator generator(file_->enum_type(i), immutable_api_, in GenerateSiblings()
573 file_->enum_type(i), in GenerateSiblings()
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc421 const EnumDescriptor& enum_descriptor = *file_->enum_type(i); in PrintTopLevelEnums()
502 PrintEnum(*descriptor.enum_type(i)); in PrintNestedEnums()
674 *message_descriptor.enum_type(i)); in PrintDescriptor()
815 const EnumDescriptor& enum_descriptor = *descriptor.enum_type(i); in FixForeignFieldsInDescriptor()
892 const EnumDescriptor* enum_type = field.enum_type(); in FixForeignFieldsInField() local
893 if (enum_type) { in FixForeignFieldsInField()
894 m["enum_type"] = ModuleLevelDescriptorName(*enum_type); in FixForeignFieldsInField()
953 AddEnumToFileDescriptor(*file_->enum_type(i)); in FixForeignFieldsInDescriptors()
1223 const EnumDescriptor& enum_descriptor = *file_->enum_type(i); in FixAllDescriptorOptions()
1293 FixOptionsForEnum(*descriptor.enum_type(i)); in FixOptionsForMessage()

12345