/external/protobuf/python/google/protobuf/pyext/ |
D | repeated_scalar_container.cc | 91 const FieldDescriptor* field_descriptor = self->parent_field_descriptor; in AssignItem() local 94 int field_size = reflection->FieldSize(*message, field_descriptor); in AssignItem() 107 return cmessage::InternalDeleteRepeatedField(self->parent, field_descriptor, in AssignItem() 116 switch (field_descriptor->cpp_type()) { in AssignItem() 119 reflection->SetRepeatedInt32(message, field_descriptor, index, value); in AssignItem() 124 reflection->SetRepeatedInt64(message, field_descriptor, index, value); in AssignItem() 129 reflection->SetRepeatedUInt32(message, field_descriptor, index, value); in AssignItem() 134 reflection->SetRepeatedUInt64(message, field_descriptor, index, value); in AssignItem() 139 reflection->SetRepeatedFloat(message, field_descriptor, index, value); in AssignItem() 144 reflection->SetRepeatedDouble(message, field_descriptor, index, value); in AssignItem() [all …]
|
D | message.cc | 109 PyObject* cls, const FieldDescriptor* field_descriptor) { in AddFieldNumberToClass() argument 110 string constant_name = field_descriptor->name() + "_FIELD_NUMBER"; in AddFieldNumberToClass() 117 ScopedPyObjectPtr number(PyInt_FromLong(field_descriptor->number())); in AddFieldNumberToClass() 413 const FieldDescriptor* field_descriptor, 433 const FieldDescriptor* field_descriptor) { in VisitCMessage() 742 bool CheckFieldBelongsToMessage(const FieldDescriptor* field_descriptor, in CheckAndGetInteger() argument 744 if (message->GetDescriptor() == field_descriptor->containing_type()) { in CheckAndGetInteger() 748 field_descriptor->full_name().c_str(), in CheckAndGetInteger() 900 const FieldDescriptor *field_descriptor = in CheckAndGetInteger() local 902 if (field_descriptor == NULL) { in CheckAndGetInteger() [all …]
|
D | message.h | 162 const FieldDescriptor* field_descriptor, 174 CMessage* self, const FieldDescriptor* field_descriptor); 186 const FieldDescriptor* field_descriptor, 191 const FieldDescriptor* field_descriptor, 196 const FieldDescriptor* field_descriptor, 203 const FieldDescriptor* field_descriptor); 232 CMessage* self, const FieldDescriptor* field_descriptor); 278 #define FIELD_IS_REPEATED(field_descriptor) \ argument 279 ((field_descriptor)->label() == FieldDescriptor::LABEL_REPEATED) 352 bool CheckFieldBelongsToMessage(const FieldDescriptor* field_descriptor,
|
D | map_container.cc | 133 const FieldDescriptor* field_descriptor, in PythonToMapKey() argument 135 switch (field_descriptor->cpp_type()) { in PythonToMapKey() 163 if (!PyStringToSTL(CheckString(obj, field_descriptor), &str)) { in PythonToMapKey() 172 field_descriptor->cpp_type()); in PythonToMapKey() 178 static PyObject* MapKeyToPython(const FieldDescriptor* field_descriptor, in MapKeyToPython() argument 180 switch (field_descriptor->cpp_type()) { in MapKeyToPython() 192 return ToStringObject(field_descriptor, key.GetStringValue()); in MapKeyToPython() 196 field_descriptor->cpp_type()); in MapKeyToPython() 203 PyObject* MapValueRefToPython(const FieldDescriptor* field_descriptor, in MapValueRefToPython() argument 205 switch (field_descriptor->cpp_type()) { in MapValueRefToPython() [all …]
|
D | descriptor_pool.cc | 246 const FieldDescriptor* field_descriptor = in FindFieldByName() local 248 if (field_descriptor == NULL) { in FindFieldByName() 254 return PyFieldDescriptor_FromDescriptor(field_descriptor); in FindFieldByName() 264 const FieldDescriptor* field_descriptor = in FindExtensionByName() local 266 if (field_descriptor == NULL) { in FindExtensionByName() 271 return PyFieldDescriptor_FromDescriptor(field_descriptor); in FindExtensionByName()
|
D | descriptor.cc | 677 namespace field_descriptor { namespace 946 field_descriptor::Methods, // tp_methods 948 field_descriptor::Getters, // tp_getset 953 const FieldDescriptor* field_descriptor) { in PyFieldDescriptor_FromDescriptor() argument 955 &PyFieldDescriptor_Type, field_descriptor, NULL); in PyFieldDescriptor_FromDescriptor()
|
/external/protobuf/python/google/protobuf/internal/ |
D | python_message.py | 289 def _AttachFieldHelpers(cls, field_descriptor): argument 290 is_repeated = (field_descriptor.label == _FieldDescriptor.LABEL_REPEATED) 292 wire_format.IsTypePackable(field_descriptor.type)) 295 elif field_descriptor.containing_type.syntax == "proto2": 296 is_packed = (field_descriptor.has_options and 297 field_descriptor.GetOptions().packed) 299 has_packed_false = (field_descriptor.has_options and 300 field_descriptor.GetOptions().HasField("packed") and 301 field_descriptor.GetOptions().packed == False) 303 is_map_entry = _IsMapField(field_descriptor) [all …]
|
D | descriptor_test.py | 142 field_descriptor = message_descriptor.fields_by_name["field1"] 156 field_options = field_descriptor.GetOptions() 329 field_descriptor = message_descriptor.fields_by_name["fieldname"] 355 field_descriptor.GetOptions().Extensions[ 445 def CheckFieldDescriptor(self, field_descriptor): argument 447 self.assertEqual(field_descriptor.name, 'optional_int32') 448 self.assertEqual(field_descriptor.camelcase_name, 'optionalInt32') 449 self.assertEqual(field_descriptor.full_name, 451 self.assertEqual(field_descriptor.containing_type.name, 'TestAllTypes') 453 self.assertEqual(field_descriptor, field_descriptor) [all …]
|
D | unknown_fields_test.py | 162 field_descriptor = self.descriptor.fields_by_name[name] 163 wire_type = type_checkers.FIELD_TYPE_TO_WIRE_TYPE[field_descriptor.type] 164 field_tag = encoder.TagBytes(field_descriptor.number, wire_type) 170 return result_dict[field_descriptor] 273 field_descriptor = self.descriptor.fields_by_name[name] 274 wire_type = type_checkers.FIELD_TYPE_TO_WIRE_TYPE[field_descriptor.type] 275 field_tag = encoder.TagBytes(field_descriptor.number, wire_type) 282 return result_dict[field_descriptor]
|
D | encoder.py | 343 def MapSizer(field_descriptor): argument 348 message_type = field_descriptor.message_type 349 message_sizer = MessageSizer(field_descriptor.number, False, False) 803 def MapEncoder(field_descriptor): argument 815 message_type = field_descriptor.message_type 816 encode_message = MessageEncoder(field_descriptor.number, False, False)
|
D | decoder.py | 719 def MapDecoder(field_descriptor, new_default, is_message_map): argument 722 key = field_descriptor 723 tag_bytes = encoder.TagBytes(field_descriptor.number, 728 message_type = field_descriptor.message_type
|
D | type_checkers.py | 61 def SupportsOpenEnums(field_descriptor): argument 62 return field_descriptor.containing_type.syntax == "proto3"
|
D | reflection_test.py | 2830 for field_descriptor, _ in proto.ListFields(): 2831 self.assertEqual(False, field_descriptor.GetOptions().packed) 2836 for field_descriptor, _ in proto.ListFields(): 2837 self.assertEqual(True, field_descriptor.GetOptions().packed) 2839 field_descriptor.label)
|
/external/python/apitools/apitools/base/protorpclite/ |
D | descriptor.py | 314 field_descriptor = FieldDescriptor() 315 field_descriptor.name = field_definition.name 316 field_descriptor.number = field_definition.number 317 field_descriptor.variant = field_definition.variant 320 field_descriptor.type_name = field_definition.type.definition_name() 323 field_descriptor.type_name = ( 327 field_descriptor.default_value = _DEFAULT_TO_STRING_MAP[ 332 field_descriptor.label = FieldDescriptor.Label.REPEATED 334 field_descriptor.label = FieldDescriptor.Label.REQUIRED 336 field_descriptor.label = FieldDescriptor.Label.OPTIONAL [all …]
|
/external/perfetto/src/perfetto_cmd/ |
D | pbtxt_to_pb.cc | 397 const FieldDescriptorProto* field_descriptor = nullptr; in FindFieldByName() local 400 field_descriptor = &f; in FindFieldByName() 405 if (!field_descriptor) { in FindFieldByName() 414 field_descriptor->label() == FieldDescriptorProto::LABEL_REPEATED; in FindFieldByName() 423 if (!valid_field_types.count(field_descriptor->type())) { in FindFieldByName() 428 {"$t", FieldToTypeName(field_descriptor)}, in FindFieldByName() 436 return field_descriptor; in FindFieldByName()
|
/external/python/apitools/apitools/gen/ |
D | message_registry.py | 353 extended_field.field_descriptor = field 470 if field.field_descriptor.variant == messages.Variant.MESSAGE: 471 field_type_name = field.field_descriptor.type_name 475 field.field_descriptor.variant = messages.Variant.ENUM
|
D | command_registry.py | 162 field = extended_field.field_descriptor 230 field = extended_field.field_descriptor 253 if self.__FieldIsRepeated(extended_field.field_descriptor): 267 field = extended_field.field_descriptor
|
D | extended_descriptor.py | 94 field_descriptor = messages.MessageField( variable in ExtendedFieldDescriptor 323 field = extended_field.field_descriptor 495 field = extended_field.field_descriptor
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_map_field.cc | 42 bool IsProto3Field(const FieldDescriptor* field_descriptor) { in IsProto3Field() argument 43 const FileDescriptor* file_descriptor = field_descriptor->file(); in IsProto3Field()
|
D | cpp_helpers.h | 111 bool IsFieldDependent(const FieldDescriptor* field_descriptor);
|
/external/tensorflow/tensorflow/core/kernels/ |
D | decode_proto_op.cc | 695 const FieldDescriptor* field_descriptor = field_descs[output_index]; in DecodeProtoOp() local 698 dtype, field_descriptor, &default_value)); in DecodeProtoOp() 700 MakeUnique<FieldInfo>(field_descriptor, output_index, default_value)); in DecodeProtoOp()
|
/external/protobuf/src/google/protobuf/ |
D | descriptor.cc | 272 const FieldDescriptor* field_descriptor; member 298 CONSTRUCTOR(FieldDescriptor , FIELD , field_descriptor ) in CONSTRUCTOR() 311 case FIELD : return field_descriptor ->file(); in CONSTRUCTOR() 1220 !result.field_descriptor->is_extension()) { in FindFieldByName() 1221 return result.field_descriptor; in FindFieldByName() 1231 result.field_descriptor->is_extension()) { in FindExtensionByName() 1232 return result.field_descriptor; in FindExtensionByName() 1360 if (!result.IsNull() && !result.field_descriptor->is_extension()) { in FindFieldByName() 1361 return result.field_descriptor; in FindFieldByName() 1382 if (!result.IsNull() && result.field_descriptor->is_extension()) { in FindExtensionByName() [all …]
|
D | map_test.cc | 2427 const FieldDescriptor* field_descriptor = in TEST() local 2430 field_descriptor->message_type()->FindFieldByName("value"); in TEST() 2432 message.GetReflection()->AddMessage(&message, field_descriptor); in TEST()
|
/external/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 809 const FieldDescriptor& field_descriptor = *descriptor.field(i); in FixForeignFieldsInDescriptor() local 810 FixForeignFieldsInField(&descriptor, field_descriptor, "fields_by_name"); in FixForeignFieldsInDescriptor()
|