/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/ |
D | definition_test.py | 90 field_descriptor = descriptor.FieldDescriptor() 92 field_descriptor.name = 'a_field' 93 field_descriptor.number = 1 94 field_descriptor.variant = descriptor.FieldDescriptor.Variant.INT32 95 field_descriptor.label = descriptor.FieldDescriptor.Label.OPTIONAL 97 field = definition.define_field(field_descriptor) 110 field_descriptor = descriptor.FieldDescriptor() 112 field_descriptor.name = 'a_field' 113 field_descriptor.number = 1 114 field_descriptor.variant = descriptor.FieldDescriptor.Variant.STRING [all …]
|
D | definition.py | 108 def define_field(field_descriptor): argument 117 field_class = _VARIANT_MAP[field_descriptor.variant] 118 params = {'number': field_descriptor.number, 119 'variant': field_descriptor.variant, 122 if field_descriptor.label == descriptor.FieldDescriptor.Label.REQUIRED: 124 elif field_descriptor.label == descriptor.FieldDescriptor.Label.REPEATED: 127 message_type_field = _MESSAGE_TYPE_MAP.get(field_descriptor.type_name) 131 return field_class(field_descriptor.type_name, **params) 133 if field_descriptor.default_value: 134 value = field_descriptor.default_value
|
D | descriptor.py | 350 field_descriptor = FieldDescriptor() 351 field_descriptor.name = field_definition.name 352 field_descriptor.number = field_definition.number 353 field_descriptor.variant = field_definition.variant 356 field_descriptor.type_name = field_definition.type.definition_name() 359 field_descriptor.type_name = field_definition.message_type.definition_name() 362 field_descriptor.default_value = _DEFAULT_TO_STRING_MAP[ 367 field_descriptor.label = FieldDescriptor.Label.REPEATED 369 field_descriptor.label = FieldDescriptor.Label.REQUIRED 371 field_descriptor.label = FieldDescriptor.Label.OPTIONAL [all …]
|
/external/protobuf/python/google/protobuf/pyext/ |
D | repeated_scalar_container.cc | 91 const google::protobuf::FieldDescriptor* field_descriptor = in AssignItem() local 93 if (!FIELD_BELONGS_TO_MESSAGE(field_descriptor, message)) { in AssignItem() 100 int field_size = reflection->FieldSize(*message, field_descriptor); in AssignItem() 113 return cmessage::InternalDeleteRepeatedField(message, field_descriptor, in AssignItem() 122 switch (field_descriptor->cpp_type()) { in AssignItem() 125 reflection->SetRepeatedInt32(message, field_descriptor, index, value); in AssignItem() 130 reflection->SetRepeatedInt64(message, field_descriptor, index, value); in AssignItem() 135 reflection->SetRepeatedUInt32(message, field_descriptor, index, value); in AssignItem() 140 reflection->SetRepeatedUInt64(message, field_descriptor, index, value); in AssignItem() 145 reflection->SetRepeatedFloat(message, field_descriptor, index, value); in AssignItem() [all …]
|
D | message.cc | 87 const google::protobuf::FieldDescriptor* field_descriptor, 108 const google::protobuf::FieldDescriptor* field_descriptor) { in VisitCMessage() 543 const google::protobuf::FieldDescriptor* field_descriptor, in CheckAndGetInteger() argument 549 length = reflection->FieldSize(*message, field_descriptor); in CheckAndGetInteger() 596 reflection->SwapElements(message, field_descriptor, i, to); in CheckAndGetInteger() 614 reflection->RemoveLast(message, field_descriptor); in CheckAndGetInteger() 619 field_descriptor, message, last_cmessage); in CheckAndGetInteger() 804 const google::protobuf::FieldDescriptor* field_descriptor) { in CheckAndGetInteger() 854 CMessage* self, const google::protobuf::FieldDescriptor* field_descriptor) { in CheckAndGetInteger() argument 856 if (!FIELD_BELONGS_TO_MESSAGE(field_descriptor, message)) { in CheckAndGetInteger() [all …]
|
D | message.h | 124 const google::protobuf::FieldDescriptor* field_descriptor, 144 const google::protobuf::FieldDescriptor* field_descriptor, 149 const google::protobuf::FieldDescriptor* field_descriptor, 156 const google::protobuf::FieldDescriptor* field_descriptor); 186 CMessage* self, const google::protobuf::FieldDescriptor* field_descriptor); 224 #define FIELD_BELONGS_TO_MESSAGE(field_descriptor, message) \ argument 225 ((message)->GetDescriptor() == (field_descriptor)->containing_type()) 227 #define FIELD_IS_REPEATED(field_descriptor) \ argument 228 ((field_descriptor)->label() == google::protobuf::FieldDescriptor::LABEL_REPEATED)
|
D | descriptor.cc | 161 const google::protobuf::FieldDescriptor* field_descriptor) { in NewCDescriptor() argument 167 cfield_descriptor->descriptor = field_descriptor; in NewCDescriptor() 179 const google::protobuf::FieldDescriptor* field_descriptor = NULL; in FindFieldByName() local 181 field_descriptor = self->pool->FindFieldByName(full_field_name); in FindFieldByName() 183 if (field_descriptor == NULL) { in FindFieldByName() 189 return NewCDescriptor(field_descriptor); in FindFieldByName() 198 const google::protobuf::FieldDescriptor* field_descriptor = in FindExtensionByName() local 200 if (field_descriptor == NULL) { in FindExtensionByName() 206 return NewCDescriptor(field_descriptor); in FindExtensionByName()
|
/external/protobuf/python/google/protobuf/internal/ |
D | python_message.py | 201 def _AttachFieldHelpers(cls, field_descriptor): argument 202 is_repeated = (field_descriptor.label == _FieldDescriptor.LABEL_REPEATED) 203 is_packed = (field_descriptor.has_options and 204 field_descriptor.GetOptions().packed) 206 if _IsMessageSetExtension(field_descriptor): 207 field_encoder = encoder.MessageSetItemEncoder(field_descriptor.number) 208 sizer = encoder.MessageSetItemSizer(field_descriptor.number) 210 field_encoder = type_checkers.TYPE_TO_ENCODER[field_descriptor.type]( 211 field_descriptor.number, is_repeated, is_packed) 212 sizer = type_checkers.TYPE_TO_SIZER[field_descriptor.type]( [all …]
|
D | unknown_fields_test.py | 59 field_descriptor = self.descriptor.fields_by_name[name] 60 wire_type = type_checkers.FIELD_TYPE_TO_WIRE_TYPE[field_descriptor.type] 61 field_tag = encoder.TagBytes(field_descriptor.number, wire_type) 67 return result_dict[field_descriptor] 200 field_descriptor = self.descriptor.fields_by_name[name] 201 wire_type = type_checkers.FIELD_TYPE_TO_WIRE_TYPE[field_descriptor.type] 202 field_tag = encoder.TagBytes(field_descriptor.number, wire_type) 209 return result_dict[field_descriptor]
|
D | descriptor_test.py | 142 field_descriptor = message_descriptor.fields_by_name["field1"] 156 field_options = field_descriptor.GetOptions() 324 field_descriptor = message_descriptor.fields_by_name["fieldname"] 350 field_descriptor.GetOptions().Extensions[
|
D | cpp_message.py | 603 field_descriptor = fields_by_name[field_name] 605 (field_descriptor, getattr(self, field_name)))
|
D | reflection_test.py | 2790 for field_descriptor, _ in proto.ListFields(): 2791 self.assertEqual(False, field_descriptor.GetOptions().packed) 2796 for field_descriptor, _ in proto.ListFields(): 2797 self.assertEqual(True, field_descriptor.GetOptions().packed) 2799 field_descriptor.label)
|
/external/nanopb-c/generator/google/protobuf/internal/ |
D | python_message.py | 191 def _AttachFieldHelpers(cls, field_descriptor): argument 192 is_repeated = (field_descriptor.label == _FieldDescriptor.LABEL_REPEATED) 193 is_packed = (field_descriptor.has_options and 194 field_descriptor.GetOptions().packed) 196 if _IsMessageSetExtension(field_descriptor): 197 field_encoder = encoder.MessageSetItemEncoder(field_descriptor.number) 198 sizer = encoder.MessageSetItemSizer(field_descriptor.number) 200 field_encoder = type_checkers.TYPE_TO_ENCODER[field_descriptor.type]( 201 field_descriptor.number, is_repeated, is_packed) 202 sizer = type_checkers.TYPE_TO_SIZER[field_descriptor.type]( [all …]
|
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/gen/ |
D | message_registry.py | 336 extended_field.field_descriptor = field 449 if field.field_descriptor.variant == messages.Variant.MESSAGE: 450 field_type_name = field.field_descriptor.type_name 454 field.field_descriptor.variant = messages.Variant.ENUM
|
D | command_registry.py | 148 field = extended_field.field_descriptor 215 field = extended_field.field_descriptor 238 if self.__FieldIsRepeated(extended_field.field_descriptor): 251 field = extended_field.field_descriptor
|
D | extended_descriptor.py | 79 field_descriptor = messages.MessageField( variable in ExtendedFieldDescriptor 308 field = extended_field.field_descriptor 480 field = extended_field.field_descriptor
|
/external/protobuf/src/google/protobuf/ |
D | descriptor.cc | 252 const FieldDescriptor* field_descriptor; member 278 CONSTRUCTOR(FieldDescriptor , FIELD , field_descriptor ) in CONSTRUCTOR() 291 case FIELD : return field_descriptor ->file(); in CONSTRUCTOR() 1074 !result.field_descriptor->is_extension()) { in FindFieldByName() 1075 return result.field_descriptor; in FindFieldByName() 1085 result.field_descriptor->is_extension()) { in FindExtensionByName() 1086 return result.field_descriptor; in FindExtensionByName() 1214 if (!result.IsNull() && !result.field_descriptor->is_extension()) { in FindFieldByName() 1215 return result.field_descriptor; in FindFieldByName() 1236 if (!result.IsNull() && result.field_descriptor->is_extension()) { in FindExtensionByName() [all …]
|
/external/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 752 const FieldDescriptor& field_descriptor = *descriptor.field(i); in FixForeignFieldsInDescriptor() local 753 FixForeignFieldsInField(&descriptor, field_descriptor, "fields_by_name"); in FixForeignFieldsInDescriptor()
|