def _CopyFieldExpressionToProtocolBuffer(field_expression, pb):
 pb.set_name(field_expression.name.encode('utf-8'))
 pb.set_expression(field_expression.expression.encode('utf-8'))

def _CopyFieldExpressionToProtocolBuffer ( field_expression , pb ) : pb . set_name ( field_expression . name . encode ( 'utf-8' ) ) pb . set_expression ( field_expression . expression . encode ( 'utf-8' ) )
copies fieldexpression to a search_service_pb .