Home
last modified time | relevance | path

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

12345

/external/grpc-grpc/test/http2_test/
Dmessages_pb2.py61 message_type=None, enum_type=None, containing_type=None,
92 message_type=None, enum_type=None, containing_type=None,
99 message_type=None, enum_type=None, containing_type=None,
130 message_type=None, enum_type=None, containing_type=None,
137 message_type=None, enum_type=None, containing_type=None,
168 message_type=None, enum_type=None, containing_type=None,
175 message_type=None, enum_type=None, containing_type=None,
182 message_type=None, enum_type=None, containing_type=None,
189 message_type=None, enum_type=None, containing_type=None,
196 message_type=None, enum_type=None, containing_type=None,
[all …]
/external/python/apitools/apitools/gen/
Dextended_descriptor.py246 def PrintEnum(self, enum_type): argument
261 def __PrintEnumCommentLines(self, enum_type): argument
262 description = enum_type.description or '%s enum type.' % enum_type.name
266 PrintIndentedDescriptions(self.__printer, enum_type.values, 'Values',
275 def PrintEnum(self, enum_type): argument
276 self.__PrintEnumCommentLines(enum_type)
277 self.__printer('enum %s {', enum_type.name)
280 enum_type.values, key=operator.attrgetter('number'))
377 def __PrintEnumDocstringLines(self, enum_type): argument
378 description = enum_type.description or '%s enum type.' % enum_type.name
[all …]
/external/grpc-grpc/examples/python/multiplex/
Droute_guide_pb2.py39 message_type=None, enum_type=None, containing_type=None,
46 message_type=None, enum_type=None, containing_type=None,
77 message_type=None, enum_type=None, containing_type=None,
84 message_type=None, enum_type=None, containing_type=None,
115 message_type=None, enum_type=None, containing_type=None,
122 message_type=None, enum_type=None, containing_type=None,
153 message_type=None, enum_type=None, containing_type=None,
160 message_type=None, enum_type=None, containing_type=None,
191 message_type=None, enum_type=None, containing_type=None,
198 message_type=None, enum_type=None, containing_type=None,
[all …]
/external/grpc-grpc/examples/python/route_guide/
Droute_guide_pb2.py39 message_type=None, enum_type=None, containing_type=None,
46 message_type=None, enum_type=None, containing_type=None,
77 message_type=None, enum_type=None, containing_type=None,
84 message_type=None, enum_type=None, containing_type=None,
115 message_type=None, enum_type=None, containing_type=None,
122 message_type=None, enum_type=None, containing_type=None,
153 message_type=None, enum_type=None, containing_type=None,
160 message_type=None, enum_type=None, containing_type=None,
191 message_type=None, enum_type=None, containing_type=None,
198 message_type=None, enum_type=None, containing_type=None,
[all …]
/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/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/python/apitools/apitools/base/py/
Dencoding.py572 def AddCustomJsonEnumMapping(enum_type, python_name, json_name, argument
587 if not issubclass(enum_type, messages.Enum):
589 'Cannot set JSON enum mapping for non-enum "%s"' % enum_type)
590 enum_name = _GetTypeKey(enum_type, package)
591 if python_name not in enum_type.names():
593 'Enum value %s not a value for type %s' % (python_name, enum_type))
595 _CheckForExistingMappings('enum', enum_type, python_name, json_name)
630 def GetCustomJsonEnumMapping(enum_type, python_name=None, json_name=None): argument
632 return _FetchRemapping(enum_type.definition_name(), 'enum',
/external/perfetto/src/protozero/protoc_plugin/
Dprotozero_generator.cc159 const EnumDescriptor* enumeration = field->enum_type(); in IsTinyEnumField()
186 enums_.push_back(source_->enum_type(i)); in CollectDescriptors()
190 enums_.push_back(message->enum_type(i)); in CollectDescriptors()
244 if (public_imports_.count(field->enum_type()->file()) == 0) { in CollectDependencies()
245 referenced_enums_.insert(field->enum_type()); in CollectDependencies()
416 cpp_type = GetCppClassName(field->enum_type(), true); in GenerateSimpleFieldDescriptor()
616 const EnumDescriptor* nested_enum = message->enum_type(i); in GenerateMessageDescriptor()
624 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/mesa3d/src/vulkan/util/
Dgen_enum_to_str.py178 for enum_type in xml.findall('./enums[@type="enum"]'):
179 enum = enum_factory(enum_type.attrib['name'])
180 for value in enum_type.findall('./enum'):
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.-optimizer-options.pbtxt43 enum_type {
54 enum_type {
/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