Lines Matching refs:field_value
339 def SetProtobufMessageField(self, group_message, field, field_value):
346 field_value: The value to set.
349 assert type(field_value) == list
351 for list_item in field_value:
355 assert type(field_value) == bool
357 assert type(field_value) == str or type(field_value) == unicode
359 assert type(field_value) == int
362 assert type(field_value) == list
364 for list_item in field_value:
369 group_message.__setattr__(field.name, field_value)
387 field_value = None
390 field_value = policies[field.name]
391 self.SetProtobufMessageField(group_message, field, field_value)
415 field_value = None
418 field_value = policies['mandatory'][field.name]
420 field_value = policies['recommended'][field.name]
421 if field_value != None:
423 self.SetProtobufMessageField(group_message, field, field_value)